From 89c6fa1883fce20ddd6c4441b6f5e3af95f691da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Roberto=20de=20Souza?= Date: Wed, 18 Sep 2024 09:31:50 -0700 Subject: [PATCH] anv: Fix condition to clear query pool with blorp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The comment above says it all, only when queue is not protected that it is possible to clear query pool with blorp but it was checking the opposite. Fixes: d5b05265077a ("anv: propagate protected information for blorp operations") Reviewed-by: Lionel Landwerlin Signed-off-by: José Roberto de Souza Part-of: --- src/intel/vulkan/genX_query.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/genX_query.c b/src/intel/vulkan/genX_query.c index 84feb0209db..6280ca9ed03 100644 --- a/src/intel/vulkan/genX_query.c +++ b/src/intel/vulkan/genX_query.c @@ -834,7 +834,7 @@ void genX(CmdResetQueryPool)( * mode. */ if (anv_cmd_buffer_is_render_or_compute_queue(cmd_buffer) && - (cmd_buffer->vk.pool->flags & VK_COMMAND_POOL_CREATE_PROTECTED_BIT) != 0 && + (cmd_buffer->vk.pool->flags & VK_COMMAND_POOL_CREATE_PROTECTED_BIT) == 0 && queryCount >= pdevice->instance->query_clear_with_blorp_threshold) { trace_intel_begin_query_clear_blorp(&cmd_buffer->trace);