From ac2b7d07e414fa6ff5bb3ecb4d88e5fe82567823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Cerveau?= Date: Tue, 22 Oct 2024 18:15:16 +0200 Subject: [PATCH] anv: check that inline query pool is VK_NULL_HANDLE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Hyunjun Ko Reviewed-by: Lionel Landwerlin Signed-off-by: Stéphane Cerveau Part-of: --- src/intel/vulkan/genX_cmd_video.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/intel/vulkan/genX_cmd_video.c b/src/intel/vulkan/genX_cmd_video.c index 4c73874bab8..c2cdc81e0e1 100644 --- a/src/intel/vulkan/genX_cmd_video.c +++ b/src/intel/vulkan/genX_cmd_video.c @@ -1186,6 +1186,8 @@ handle_inline_query_end(struct anv_cmd_buffer *cmd_buffer, const VkVideoInlineQueryInfoKHR *inline_query) { ANV_FROM_HANDLE(anv_query_pool, pool, inline_query->queryPool); + if (pool == VK_NULL_HANDLE) + return; struct anv_address query_addr = { .bo = pool->bo,