Mesa (master): anv: Report correct SLM size
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Apr 16 17:36:12 UTC 2020
Module: Mesa
Branch: master
Commit: b8acf9a3d4af33cf8b6b8c870167c2aa348990a0
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b8acf9a3d4af33cf8b6b8c870167c2aa348990a0
Author: Jason Ekstrand <jason at jlekstrand.net>
Date: Wed Apr 15 16:06:03 2020 -0500
anv: Report correct SLM size
Fixes: d787a2d0 "anv: Implement VK_KHR_pipeline_executable_properties"
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4597>
---
src/intel/vulkan/anv_pipeline.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c
index b85a37e7873..3eee3b74d84 100644
--- a/src/intel/vulkan/anv_pipeline.c
+++ b/src/intel/vulkan/anv_pipeline.c
@@ -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;
}
}
More information about the mesa-commit
mailing list