anv: check that inline query pool is VK_NULL_HANDLE
Reviewed-by: Hyunjun Ko <zzoon@igalia.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Signed-off-by: Stéphane Cerveau <scerveau@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31765>
This commit is contained in:

committed by
Marge Bot

parent
aaa5770d4b
commit
ac2b7d07e4
@@ -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,
|
||||
|
Reference in New Issue
Block a user