vc4: Enable lower_umax and lower_umin

VC4 doesn't have support for UMAX and UMIN integer operations. So
we should avoid algebraic optimizations that generate umax/umin ops.

Fixes: 8e1b75b330 ("nir/algebraic: optimize iand/ior of (n)eq zero")
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7083>
(cherry picked from commit d5e5f72e06)
This commit is contained in:
Jose Maria Casanova Crespo 2020-10-09 18:40:45 +02:00 committed by Dylan Baker
parent a66268d3f4
commit 732b28c8b1
2 changed files with 3 additions and 1 deletions

View file

@ -5908,7 +5908,7 @@
"description": "vc4: Enable lower_umax and lower_umin",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": "8e1b75b330954a2e40e8ed0c04871e43120d4f4a"
},

View file

@ -2190,6 +2190,8 @@ static const nir_shader_compiler_options nir_options = {
.lower_negate = true,
.lower_rotate = true,
.lower_to_scalar = true,
.lower_umax = true,
.lower_umin = true,
.max_unroll_iterations = 32,
};