i915g: use a valid setting for force_indirect_unrolling
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 9 May 2022 04:40:52 +0000 (14:40 +1000)
committerMarge Bot <emma+marge@anholt.net>
Tue, 17 May 2022 02:12:21 +0000 (02:12 +0000)
Otherwise we can hit asserts for example nir_deref_mode_must_be()
asserts on !(modes & ~nir_var_all)

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16543>

src/gallium/drivers/i915/i915_screen.c

index f107738..658d627 100644 (file)
@@ -120,7 +120,7 @@ static const nir_shader_compiler_options i915_compiler_options = {
    .lower_uniforms_to_ubo = true,
    .lower_vector_cmp = true,
    .use_interpolated_input_intrinsics = true,
-   .force_indirect_unrolling = ~0,
+   .force_indirect_unrolling = nir_var_all,
    .force_indirect_unrolling_sampler = true,
 };