diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2022-04-28 14:25:36 -0700 |
---|---|---|
committer | Dylan Baker <dylan.c.baker@intel.com> | 2022-05-03 09:41:32 -0700 |
commit | 9febc11af9a8a5b227ddaeda4798ae0ef52bd644 (patch) | |
tree | 10e17b1c423a77a9592be7e9fb9c583077e9b2e4 /.pick_status.json | |
parent | d29fe64c7e5eaff00f879c28a0e2c7ae877de60d (diff) |
util: Keep quiet NaNs quiet when converting to half float.
We don't want to be throwing exceptions and changing float values later by
emitting a signaling binary16 nan.
If we don't do this, then when we convert back to f32 in NIR constant
expression evaluation, the signaling NaN can end up giving NaN for
fmax(NaN, 0.0), instead of 0.0.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5933
Cc: mesa-stable
Reviewed-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16233>
(cherry picked from commit 27e33d5c963f13a47c4b9276378db913d8ecb189)
Diffstat (limited to '.pick_status.json')
-rw-r--r-- | .pick_status.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.pick_status.json b/.pick_status.json index 5807233d9f3..5b2590ec005 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -274,7 +274,7 @@ "description": "util: Keep quiet NaNs quiet when converting to half float.", "nominated": true, "nomination_type": 0, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": null }, |