From 97b09a92686d75ba2faca2fb20276c75f630f691 Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Mon, 18 Jan 2016 10:00:49 -0800 Subject: [PATCH] anv/pipeline: Set size of shared variables in prog_data Signed-off-by: Jordan Justen --- src/vulkan/anv_pipeline.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vulkan/anv_pipeline.c b/src/vulkan/anv_pipeline.c index 2a22497815a..d66987f1a8c 100644 --- a/src/vulkan/anv_pipeline.c +++ b/src/vulkan/anv_pipeline.c @@ -746,6 +746,8 @@ anv_pipeline_compile_cs(struct anv_pipeline *pipeline, if (nir == NULL) return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY); + prog_data->base.total_shared = nir->num_shared; + void *mem_ctx = ralloc_context(NULL); if (module->nir == NULL) -- 2.30.2