anv: Report correct SLM size
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 15 Apr 2020 21:06:03 +0000 (16:06 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 16 Apr 2020 17:26:16 +0000 (17:26 +0000)
Fixes: d787a2d0 "anv: Implement VK_KHR_pipeline_executable_properties"
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4597>

src/intel/vulkan/anv_pipeline.c

index b85a37e78730ee494c3e9aba9fba9a234eff32f3..3eee3b74d842d2254156500459a95e7bb1ed2553 100644 (file)
@@ -2257,7 +2257,7 @@ VkResult anv_GetPipelineExecutableStatisticsKHR(
                    "Number of bytes of workgroup shared memory used by this "
                    "compute shader including any padding.");
          stat->format = VK_PIPELINE_EXECUTABLE_STATISTIC_FORMAT_UINT64_KHR;
-         stat->value.u64 = prog_data->total_scratch;
+         stat->value.u64 = brw_cs_prog_data_const(prog_data)->slm_size;
       }
    }