mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
nir: Fix broken fsat recognizer.
We've probably never seen this ridiculous pattern in the wild, so it didn't matter. Reviewed-by: Connor Abbott <cwabbott0@gmail.com> Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
This commit is contained in:
parent
6706537dd4
commit
bff4cbdafa
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ optimizations = [
|
|||
(('feq', ('fadd', a, b), 0.0), ('feq', a, ('fneg', b))),
|
||||
(('fne', ('fadd', a, b), 0.0), ('fne', a, ('fneg', b))),
|
||||
(('fge', ('fneg', ('fabs', a)), 0.0), ('feq', a, 0.0)),
|
||||
(('fmin', ('fmax', a, 1.0), 0.0), ('fsat', a)),
|
||||
(('fmin', ('fmax', a, 0.0), 1.0), ('fsat', a)),
|
||||
# Logical and bit operations
|
||||
(('fand', a, 0.0), 0.0),
|
||||
(('iand', a, a), a),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue