From 398e6cf38b770b00290c8aba93bd41c54c54b0a0 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Thu, 30 May 2024 10:54:56 +0300 Subject: [PATCH] anv: reuse cs_prog_data pointer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lionel Landwerlin Reviewed-by: Tapani Pälli Part-of: --- src/intel/vulkan/genX_pipeline.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c index c54ced468f4..813023f04dc 100644 --- a/src/intel/vulkan/genX_pipeline.c +++ b/src/intel/vulkan/genX_pipeline.c @@ -2200,12 +2200,11 @@ genX(compute_pipeline_emit)(struct anv_compute_pipeline *pipeline) vfe.URBEntryAllocationSize = 2; vfe.CURBEAllocationSize = vfe_curbe_allocation; - if (cs_bin->prog_data->total_scratch) { + if (cs_prog_data->base.total_scratch) { /* Broadwell's Per Thread Scratch Space is in the range [0, 11] * where 0 = 1k, 1 = 2k, 2 = 4k, ..., 11 = 2M. */ - vfe.PerThreadScratchSpace = - ffs(cs_bin->prog_data->total_scratch) - 11; + vfe.PerThreadScratchSpace = ffs(cs_prog_data->base.total_scratch) - 11; vfe.ScratchSpaceBasePointer = get_scratch_address(&pipeline->base, MESA_SHADER_COMPUTE, cs_bin); }