Commit 7346933f authored by José Casanova Crespo's avatar José Casanova Crespo

vc4: enable lower_isign for VC4

Since 1e7d82c8 ("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: 1e7d82c8 ("nir/algebraic: always lower idiv to shifts if bitops are allowed")
Reviewed-by: Alejandro Piñeiro's avatarAlejandro Piñeiro <apinheiro@igalia.com>
Part-of: <!7089>
parent b7d16adc
Pipeline #212421 waiting for manual action with stages
......@@ -2193,6 +2193,7 @@ static const nir_shader_compiler_options nir_options = {
.lower_to_scalar = true,
.lower_umax = true,
.lower_umin = true,
.lower_isign = true,
.max_unroll_iterations = 32,
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment