mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
nir/spirv/glsl450: Use fabs not iabs in ldexp.
This was just wrong.
This commit is contained in:
parent
947ebd9c71
commit
b76e4458f9
1 changed files with 1 additions and 1 deletions
|
|
@ -305,7 +305,7 @@ def ldexp_to_arith(x, exp):
|
|||
exp_width = 8
|
||||
|
||||
# Extract the biased exponent from <x>.
|
||||
extracted_biased_exp = ('ushr', ('iabs', x), exp_shift)
|
||||
extracted_biased_exp = ('ushr', ('fabs', x), exp_shift)
|
||||
resulting_biased_exp = ('iadd', extracted_biased_exp, exp)
|
||||
|
||||
# Test if result is ±0.0, subnormal, or underflow by checking if the
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue