mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
nir: fix fp_math_ctrl in fisnan
Otherwise, nir_opt_algebraic will replace it with false.
Fixes: 63d199a01e ("nir: remove special fp_math_ctrl rules")
This commit is contained in:
parent
4dbdd4c0ee
commit
7a0ecf9d52
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ static inline nir_def *
|
|||
nir_fisnan(nir_builder *b, nir_def *x)
|
||||
{
|
||||
unsigned old_fp_math_ctrl = b->fp_math_ctrl;
|
||||
b->fp_math_ctrl |= nir_fp_exact;
|
||||
b->fp_math_ctrl |= nir_fp_preserve_inf | nir_fp_preserve_nan;
|
||||
nir_def *res = nir_fneu(b, x, x);
|
||||
b->fp_math_ctrl = old_fp_math_ctrl;
|
||||
return res;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue