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 <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:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user