From cf3a343800cfdd34e4fbc0bd0e937abc2cde2eb6 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Tue, 18 Feb 2025 09:22:13 +0200 Subject: [PATCH] anv: fixup compute walker storage length MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lionel Landwerlin Fixes: 9aef4ceb13 ("anv: hold a prepacked COMPUTE_WALKER instruction on CS pipelines") Reviewed-by: Tapani Pälli Reviewed-by: Rohan Garg Part-of: --- src/intel/vulkan/anv_private.h | 2 +- src/intel/vulkan/genX_pipeline.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index bfb036866fc..fe1782474ce 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -5036,7 +5036,7 @@ struct anv_compute_pipeline { uint32_t gpgpu_walker[15]; } gfx9; struct { - uint32_t compute_walker[39]; + uint32_t compute_walker[40]; } gfx125; }; diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c index 5b09ab1762a..0acf4aa23a6 100644 --- a/src/intel/vulkan/genX_pipeline.c +++ b/src/intel/vulkan/genX_pipeline.c @@ -2119,6 +2119,7 @@ genX(compute_pipeline_emit)(struct anv_compute_pipeline *pipeline) }, }; + assert(ARRAY_SIZE(pipeline->gfx125.compute_walker) >= GENX(COMPUTE_WALKER_length)); GENX(COMPUTE_WALKER_pack)(NULL, pipeline->gfx125.compute_walker, &walker); }