mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-24 20:10:40 +02:00
nir/opcodes: fix fsat signed zero correctness
fsat(-0.0) must return +0.0. Cc: mesa-stable Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39137>
This commit is contained in:
parent
f68b891a81
commit
026d4cd200
1 changed files with 1 additions and 1 deletions
|
|
@ -236,7 +236,7 @@ OpenCL.
|
|||
unop("isign", tint, "(src0 == 0) ? 0 : ((src0 > 0) ? 1 : -1)")
|
||||
unop("iabs", tint, "(src0 < 0) ? -src0 : src0")
|
||||
unop("fabs", tfloat, "fabs(src0)")
|
||||
unop("fsat", tfloat, ("fmin(fmax(src0, 0.0), 1.0)"))
|
||||
unop("fsat", tfloat, ("util_min_num(util_max_num(src0, 0.0), 1.0)"))
|
||||
unop("frcp", tfloat, "bit_size == 64 ? 1.0 / src0 : 1.0f / src0")
|
||||
unop("frsq", tfloat, "bit_size == 64 ? 1.0 / sqrt(src0) : 1.0f / sqrtf(src0)")
|
||||
unop("fsqrt", tfloat, "bit_size == 64 ? sqrt(src0) : sqrtf(src0)")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue