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>
This commit is contained in:
Jose Maria Casanova Crespo 2020-10-09 18:40:45 +02:00
parent e7127b3468
commit d5e5f72e06
1 changed files with 2 additions and 0 deletions

View File

@ -2191,6 +2191,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,
};