anv: Report correct SLM size

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>
This commit is contained in:
Jason Ekstrand 2020-04-15 16:06:03 -05:00 committed by Marge Bot
parent e003104605
commit b8acf9a3d4
1 changed files with 1 additions and 1 deletions

View 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;
}
}