mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
freedreno/ir3: add rule to generate imad24
Signed-off-by: Rob Clark <robdclark@chromium.org> Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com> Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
This commit is contained in:
parent
5e08f070f0
commit
666b6236f7
1 changed files with 5 additions and 0 deletions
|
|
@ -27,6 +27,11 @@ import sys
|
|||
|
||||
imul_lowering = [
|
||||
(('imul', 'a@32', 'b@32'), ('imadsh_mix16', 'b', 'a', ('imadsh_mix16', 'a', 'b', ('umul_low', 'a', 'b')))),
|
||||
# We want to run the imad24 rule late so that it doesn't fight
|
||||
# with constant folding the (imul24, a, b). Since this pass is
|
||||
# run late, and this is kinda imul related, this seems like a
|
||||
# good place for it:
|
||||
(('iadd', ('imul24', 'a', 'b'), 'c'), ('imad24_ir3', 'a', 'b', 'c')),
|
||||
]
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue