mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-19 15:32:24 +01:00
pan/mdg: Lower isub in common code
No shader-db changes. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Italo Nicola <italonicola@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23769>
This commit is contained in:
parent
074e5700cc
commit
e8ffbc77b5
2 changed files with 1 additions and 6 deletions
|
|
@ -51,6 +51,7 @@ static const nir_shader_compiler_options midgard_nir_options = {
|
|||
.lower_ffract = true,
|
||||
.lower_fmod = true,
|
||||
.lower_fdiv = true,
|
||||
.lower_ineg = true,
|
||||
.lower_isign = true,
|
||||
.lower_fpow = true,
|
||||
.lower_find_lsb = true,
|
||||
|
|
|
|||
|
|
@ -41,12 +41,6 @@ algebraic = [
|
|||
]
|
||||
|
||||
algebraic_late = [
|
||||
# ineg must be lowered late, but only for integers; floats will try to
|
||||
# have modifiers attached... hence why this has to be here rather than
|
||||
# a more standard lower_negate approach
|
||||
|
||||
(('ineg', a), ('isub', 0, a)),
|
||||
|
||||
# Likewise we want fsub lowered but not isub
|
||||
(('fsub', a, b), ('fadd', a, ('fneg', b))),
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue