vc4: enable lower_isign for VC4
authorJose Maria Casanova Crespo <jmcasanova@igalia.com>
Sat, 10 Oct 2020 11:19:39 +0000 (12:19 +0100)
committerJose Maria Casanova Crespo <jmcasanova@igalia.com>
Sun, 11 Oct 2020 09:46:43 +0000 (11:46 +0200)
commit7346933fc8616ec2adc9848d267cee873f2eabb8
treed17abddd21a6298d7ccbeaba2977630d54d81bd2
parentb7d16adcbe0b1052dc16dc2447f1964ef972f37f
vc4: enable lower_isign for VC4

Since 1e7d82c8813647 ("nir/algebraic: always lower idiv
to shifts if bitops are allowed") idiv is lowered and
generates a isign operation.

VC4 HW doesn't support isign and lower_isign wasn't enabled.
Enabling it fixes the regressions caused by this new
optimization on piglit tests shaders/glsl-fs-loop-nested.

Fixes: 1e7d82c8813647 ("nir/algebraic: always lower idiv to shifts if bitops are allowed")
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7089>
src/gallium/drivers/vc4/vc4_program.c