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:
Alyssa Rosenzweig 2023-06-20 17:57:16 -04:00
parent 074e5700cc
commit e8ffbc77b5
2 changed files with 1 additions and 6 deletions

View file

@ -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,

View file

@ -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))),