mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 05:40:13 +01:00
nir: Remove useless ftrunc inside f2i/f2u.
No shader-db changes, probably because they're all removed by the GLSL
compiler optimization added in commit 69ad5fd4.
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
97e6c1b957
commit
781badee7a
1 changed files with 4 additions and 0 deletions
|
|
@ -181,6 +181,10 @@ optimizations = [
|
|||
(('bcsel', a, b, b), b),
|
||||
(('fcsel', a, b, b), b),
|
||||
|
||||
# Conversions
|
||||
(('f2i', ('ftrunc', a)), ('f2i', a)),
|
||||
(('f2u', ('ftrunc', a)), ('f2u', a)),
|
||||
|
||||
# Subtracts
|
||||
(('fsub', a, ('fsub', 0.0, b)), ('fadd', a, b)),
|
||||
(('isub', a, ('isub', 0, b)), ('iadd', a, b)),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue