From ece7abb599e2fa59acd888985b93ea60360dbdbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Briano?= Date: Tue, 2 Jul 2024 10:18:44 -0700 Subject: [PATCH] anv: get scratch surface from the correct pool MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: 3ccf80f9b15 ("anv: prepare 2 variants of all shader instructions") Reviewed-by: José Roberto de Souza Part-of: --- src/intel/vulkan/genX_pipeline.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c index fdd609a6664..3f0926a2e56 100644 --- a/src/intel/vulkan/genX_pipeline.c +++ b/src/intel/vulkan/genX_pipeline.c @@ -1223,8 +1223,7 @@ get_scratch_surf(struct anv_pipeline *pipeline, anv_scratch_pool_alloc(pipeline->device, pool, stage, bin->prog_data->total_scratch); anv_reloc_list_add_bo(pipeline->batch.relocs, bo); - return anv_scratch_pool_get_surf(pipeline->device, - &pipeline->device->scratch_pool, + return anv_scratch_pool_get_surf(pipeline->device, pool, bin->prog_data->total_scratch) >> ANV_SCRATCH_SPACE_SHIFT(GFX_VER); }