Module: Mesa
Branch: main
Commit: 643774cdab0b66442b054bf32019c2884a6265c1
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=643774cdab0b66442b054bf32019c2884a6265c1

Author: Timothy Arceri <[email protected]>
Date:   Mon May  9 14:40:52 2022 +1000

i915g: use a valid setting for force_indirect_unrolling

Otherwise we can hit asserts for example nir_deref_mode_must_be()
asserts on !(modes & ~nir_var_all)

Reviewed-by: Emma Anholt <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16543>

---

 src/gallium/drivers/i915/i915_screen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/i915/i915_screen.c 
b/src/gallium/drivers/i915/i915_screen.c
index f107738e6e7..658d6275e78 100644
--- a/src/gallium/drivers/i915/i915_screen.c
+++ b/src/gallium/drivers/i915/i915_screen.c
@@ -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,
 };
 

Reply via email to