From 67bcdbf4a14294809303d88bb9b60f1ce515df00 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 17 Sep 2024 12:07:45 -0700 Subject: [PATCH] hasvk: remove useless uint >= 0 check Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan_hasvk/anv_batch_chain.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/intel/vulkan_hasvk/anv_batch_chain.c b/src/intel/vulkan_hasvk/anv_batch_chain.c index 95690b2aae3..2390344105c 100644 --- a/src/intel/vulkan_hasvk/anv_batch_chain.c +++ b/src/intel/vulkan_hasvk/anv_batch_chain.c @@ -2154,8 +2154,7 @@ anv_queue_exec_locked(struct anv_queue *queue, if (result != VK_SUCCESS) goto error; - const bool has_perf_query = - perf_query_pool && perf_query_pass >= 0 && cmd_buffer_count; + const bool has_perf_query = perf_query_pool && cmd_buffer_count; if (INTEL_DEBUG(DEBUG_SUBMIT)) { fprintf(stderr, "Batch offset=0x%x len=0x%x on queue 0\n",