tu: limit query pool types logged into RMV
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

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 <zdobersek@igalia.com>
Reviewed-by: Karmjit Mahil <karmjit.mahil@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37560>
This commit is contained in:
Zan Dobersek 2025-09-25 09:51:45 +02:00 committed by Marge Bot
parent e39ba2f6e8
commit 45dcbcfc02

View file

@ -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 = {