From: Jordan Justen Date: Mon, 18 Jan 2016 18:00:49 +0000 (-0800) Subject: anv/pipeline: Set size of shared variables in prog_data X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=97b09a92686d75ba2faca2fb20276c75f630f691;p=mesa.git anv/pipeline: Set size of shared variables in prog_data Signed-off-by: Jordan Justen --- 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)