Module: Mesa
Branch: main
Commit: 272ad6539798711eab8ed672688d5db53139f6ab
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=272ad6539798711eab8ed672688d5db53139f6ab

Author: Samuel Pitoiset <[email protected]>
Date:   Thu Sep 21 10:26:56 2023 +0200

radv: bump the pipeline state query size to 14 on GFX10.3

GFX10.3 doesn't natively support mesh/task shader invocations query
and they need to be emulated in shaders. In order to share more code
between GFX10.3 and GFX11, it's easier to use the same size as GFX11.

Signed-off-by: Samuel Pitoiset <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25950>

---

 src/amd/vulkan/radv_query.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_query.c b/src/amd/vulkan/radv_query.c
index 0e6e9d793f4..ead8d27a919 100644
--- a/src/amd/vulkan/radv_query.c
+++ b/src/amd/vulkan/radv_query.c
@@ -53,7 +53,10 @@ 
radv_get_pipelinestat_query_offset(VkQueryPipelineStatisticFlagBits query)
 static unsigned
 radv_get_pipelinestat_query_size(struct radv_device *device)
 {
-   unsigned num_results = device->physical_device->rad_info.gfx_level >= GFX11 
? 14 : 11;
+   /* GFX10_3 only has 11 valid pipeline statistics queries but in order to 
emulate mesh/task shader
+    * invocations, it's easier to use the same size as GFX11.
+    */
+   unsigned num_results = device->physical_device->rad_info.gfx_level >= 
GFX10_3 ? 14 : 11;
    return num_results * 8;
 }
 

Reply via email to