From 45dcbcfc027f013006970df26f45d2a10dc27c8f Mon Sep 17 00:00:00 2001 From: Zan Dobersek Date: Thu, 25 Sep 2025 09:51:45 +0200 Subject: [PATCH] tu: limit query pool types logged into RMV RMV only supports logging three types of query pools as created resources. Filtering unsupported ones will avoid asserts when these tokens are processed during RMV trace output. Signed-off-by: Zan Dobersek Reviewed-by: Karmjit Mahil Part-of: --- src/freedreno/vulkan/tu_rmv.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/freedreno/vulkan/tu_rmv.cc b/src/freedreno/vulkan/tu_rmv.cc index 5c3ad2db3f9..720b65933b2 100644 --- a/src/freedreno/vulkan/tu_rmv.cc +++ b/src/freedreno/vulkan/tu_rmv.cc @@ -395,6 +395,11 @@ void tu_rmv_log_query_pool_create(struct tu_device *device, struct tu_query_pool *query_pool) { + if (query_pool->vk.query_type != VK_QUERY_TYPE_OCCLUSION && + query_pool->vk.query_type != VK_QUERY_TYPE_PIPELINE_STATISTICS && + query_pool->vk.query_type != VK_QUERY_TYPE_TRANSFORM_FEEDBACK_STREAM_EXT) + return; + simple_mtx_lock(&device->vk.memory_trace_data.token_mtx); struct vk_rmv_resource_create_token token = {