mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
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:
parent
e39ba2f6e8
commit
45dcbcfc02
1 changed files with 5 additions and 0 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue