diff --git a/src/gallium/drivers/i915/i915_screen.c b/src/gallium/drivers/i915/i915_screen.c index 8c81bd7c588..ac0e6adf6c8 100644 --- a/src/gallium/drivers/i915/i915_screen.c +++ b/src/gallium/drivers/i915/i915_screen.c @@ -222,6 +222,11 @@ i915_optimize_nir(struct nir_shader *s) NIR_PASS(progress, s, nir_remove_dead_variables, nir_var_function_temp, NULL); + + /* Group texture loads together to try to avoid hitting the + * texture indirection phase limit. + */ + NIR_PASS_V(s, nir_group_loads, nir_group_all, ~0); } static char *