Skip to content

r300: fix NIR passes regression

Patrick Lerda requested to merge noblock/mesa:r300fixnirpassesregression into main

What does this MR do and why?

r300: fix NIR passes regression

The pass "nir_opt_constant_folding" is definitely required.

For instance, this issue is triggered on a R430 with "piglit/bin/shader_runner generated_tests/spec/glsl-1.10/execution/variable-indexing/fs-varying-array-mat2-col-rd.shader_test -auto -fb":
shader_runner: ../src/compiler/nir/nir_lower_int_to_float.c:239: lower_alu_instr: Assertion `nir_alu_type_get_base_type(info->output_type) != nir_type_int && nir_alu_type_get_base_type(info->output_type) != nir_type_uint' failed.

Fixes: 092299f18ad1 ("r300: remove some late NIR passes")
Signed-off-by: Patrick Lerda <>

Merge request reports