vc4: Enable lower_umax and lower_umin
authorJose Maria Casanova Crespo <jmcasanova@igalia.com>
Fri, 9 Oct 2020 16:40:45 +0000 (18:40 +0200)
committerJose Maria Casanova Crespo <jmcasanova@igalia.com>
Sat, 10 Oct 2020 11:16:37 +0000 (13:16 +0200)
commitd5e5f72e06165928ee5d9f13d0de7d73038daa0e
tree8209d9349957087bdf944a70a0926e7c15eaa2af
parente7127b3468cbaa888bfd21ebeb2f34ab8dd8b78d
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>
src/gallium/drivers/vc4/vc4_program.c