diff options
author | Jason Ekstrand <[email protected]> | 2016-01-22 22:04:09 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-01-22 22:18:31 -0800 |
commit | 9e0bc29f803429606e86ee9bef93ab71fe572c32 (patch) | |
tree | ddb522499cd88bf3524c1565f3dd5b322ce10091 /src/glsl | |
parent | 89672d81f3c773e2fabc42773f36b7e0aedcc819 (diff) |
nir/opcodes: Properly flush denormals in fquantize2f16
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/nir/nir_opcodes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/nir/nir_opcodes.py b/src/glsl/nir/nir_opcodes.py index 1b176209e20..c5fb0420bb6 100644 --- a/src/glsl/nir/nir_opcodes.py +++ b/src/glsl/nir/nir_opcodes.py @@ -176,7 +176,7 @@ unop("ffloor", tfloat, "floorf(src0)") unop("ffract", tfloat, "src0 - floorf(src0)") unop("fround_even", tfloat, "_mesa_roundevenf(src0)") -unop("fquantize2f16", tfloat, "_mesa_half_to_float(_mesa_float_to_half(src0))") +unop("fquantize2f16", tfloat, "(fabs(src0) < ldexpf(1.0, -14)) ? copysignf(0.0f, src0) : _mesa_half_to_float(_mesa_float_to_half(src0))") # Trigonometric operations. |