mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
nir/algebraic: Make an optimization more specific
Later in this series, bool is not going to imply 32-bit. Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Tested-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
517099809a
commit
b569093566
1 changed files with 1 additions and 1 deletions
|
|
@ -440,7 +440,7 @@ optimizations = [
|
|||
(('imul', ('b2i', 'a@32'), ('b2i', 'b@32')), ('b2i', ('iand', a, b))),
|
||||
(('fmul', ('b2f', 'a@32'), ('b2f', 'b@32')), ('b2f', ('iand', a, b))),
|
||||
(('fsat', ('fadd', ('b2f', 'a@32'), ('b2f', 'b@32'))), ('b2f', ('ior', a, b))),
|
||||
(('iand', 'a@bool', 1.0), ('b2f', a)),
|
||||
(('iand', 'a@bool32', 1.0), ('b2f', a)),
|
||||
# True/False are ~0 and 0 in NIR. b2i of True is 1, and -1 is ~0 (True).
|
||||
(('ineg', ('b2i32', 'a@32')), a),
|
||||
(('flt', ('fneg', ('b2f', 'a@32')), 0), a), # Generated by TGSI KILL_IF.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue