From 511f91e307c98326185ec69570b0c6eee2c36cab Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Tue, 8 Aug 2023 09:32:40 -0700 Subject: [PATCH] anv: Lower indirect derefs again after lowering cooperative matrices The cooperative matrix lowering can generate a lot of indirect array accesses, and these need to be eliminated. Reviewed-by: Caio Oliveira Part-of: --- src/intel/vulkan/anv_pipeline.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index 2ab7fefc322..b7ff99ffbb2 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -983,6 +983,7 @@ anv_pipeline_lower_nir(struct anv_pipeline *pipeline, assert(nir->info.subgroup_size <= SUBGROUP_SIZE_REQUIRE_8); nir->info.subgroup_size = SUBGROUP_SIZE_REQUIRE_8; NIR_PASS(_, nir, brw_nir_lower_cmat, nir->info.subgroup_size); + NIR_PASS_V(nir, nir_lower_indirect_derefs, nir_var_function_temp, 16); } /* The patch control points are delivered through a push constant when