pan/mdg: Ingest actual isub ops

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4852>
This commit is contained in:
Alyssa Rosenzweig 2020-04-30 15:41:10 -04:00 committed by Marge Bot
parent f8601110e4
commit f47c60b411
2 changed files with 3 additions and 1 deletions

View File

@ -38,7 +38,6 @@ midgard_compile_shader_nir(nir_shader *nir, panfrost_program *program, bool is_b
static const nir_shader_compiler_options midgard_nir_options = {
.lower_ffma = true,
.lower_sub = true,
.lower_scmp = true,
.lower_flrp16 = true,
.lower_flrp32 = true,

View File

@ -37,6 +37,9 @@ algebraic_late = [
(('ineg', a), ('isub', 0, a)),
# Likewise we want fsub lowered but not isub
(('fsub', a, b), ('fadd', a, ('fneg', b))),
# These two special-cases save space/an op than the actual csel op +
# scheduler flexibility