From 7b13500a9968d84291578e03bb3f3d48d24314bf Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 20 Sep 2023 10:42:22 +0200 Subject: [PATCH] radv: define new pipeline statistics indices for mesh/task on GFX11 GFX11 uses pipeline statistics for mesh/task queries but on GFX10.3 they need to be emulated. Though the number of mesh/task shader invocations would be copied to the pipeline statistics range to simplify the implementation. Signed-off-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_query.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_query.c b/src/amd/vulkan/radv_query.c index 0830b1a1b5d..0e6e9d793f4 100644 --- a/src/amd/vulkan/radv_query.c +++ b/src/amd/vulkan/radv_query.c @@ -41,7 +41,7 @@ #define TIMESTAMP_NOT_READY UINT64_MAX /* TODO: Add support for mesh/task queries on GFX11 */ -static const unsigned pipeline_statistics_indices[] = {7, 6, 3, 4, 5, 2, 1, 0, 8, 9, 10}; +static const unsigned pipeline_statistics_indices[] = {7, 6, 3, 4, 5, 2, 1, 0, 8, 9, 10, 13, 11, 12}; static unsigned radv_get_pipelinestat_query_offset(VkQueryPipelineStatisticFlagBits query)