summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Maria Casanova Crespo <jmcasanova@igalia.com>2020-10-09 18:40:45 +0200
committerJose Maria Casanova Crespo <jmcasanova@igalia.com>2020-10-10 13:16:37 +0200
commitd5e5f72e06165928ee5d9f13d0de7d73038daa0e (patch)
tree8209d9349957087bdf944a70a0926e7c15eaa2af
parente7127b3468cbaa888bfd21ebeb2f34ab8dd8b78d (diff)
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: 8e1b75b330954a ("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>
-rw-r--r--src/gallium/drivers/vc4/vc4_program.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_program.c b/src/gallium/drivers/vc4/vc4_program.c
index 8bffb1d3840..ef472536966 100644
--- a/src/gallium/drivers/vc4/vc4_program.c
+++ b/src/gallium/drivers/vc4/vc4_program.c
@@ -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,
};