mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 21:40:20 +01:00
nir/opt_algebraic: Fix rules for imadsh_mix16
The rules added in patch 3addd7c are inverted:
It should be:
(al * bh) << 16 + c
instead of:
(ah * bl) << 16 + c
Fixes a number of regressions under
dEQP-GLES31.functional.draw_indirect.compute_interop.large.*
on Freedreno.
Reviewed-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
e9703fb416
commit
fb2169040a
1 changed files with 2 additions and 2 deletions
|
|
@ -1110,8 +1110,8 @@ optimizations += [
|
|||
# 'al * bl': If either 'al' or 'bl' is zero, return zero.
|
||||
(('umul_low', '#a(is_lower_half_zero)', 'b'), (0)),
|
||||
# '(ah * bl) << 16 + c': If either 'ah' or 'bl' is zero, return 'c'.
|
||||
(('imadsh_mix16', '#a@32(is_upper_half_zero)', 'b@32', 'c@32'), ('c')),
|
||||
(('imadsh_mix16', 'a@32', '#b@32(is_lower_half_zero)', 'c@32'), ('c')),
|
||||
(('imadsh_mix16', '#a@32(is_lower_half_zero)', 'b@32', 'c@32'), ('c')),
|
||||
(('imadsh_mix16', 'a@32', '#b@32(is_upper_half_zero)', 'c@32'), ('c')),
|
||||
]
|
||||
|
||||
# This section contains "late" optimizations that should be run before
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue