anv/pipeline: Set size of shared variables in prog_data
authorJordan Justen <jordan.l.justen@intel.com>
Mon, 18 Jan 2016 18:00:49 +0000 (10:00 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Thu, 21 Jan 2016 08:31:29 +0000 (00:31 -0800)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
src/vulkan/anv_pipeline.c

index 2a22497815a529235c402ae1eaac9f4115c533ba..d66987f1a8c7e6edf52c50825807354dac180677 100644 (file)
@@ -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)