From 8d098ecfea0fca662ece82f8162ea43991a4636d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Briano?= Date: Wed, 22 May 2024 15:18:50 -0700 Subject: [PATCH] anv: check cmd_buffer is on a transfer queue more properly The queueFlags of the associated queue may have more flags than just the type of queue it is, based on what that queue supports, like sparse or protected content. Check that the queue is a blitter engine instead. Fixes a bunch of dEQP-VK.api.copy_and_blit.core.*_transfer on MTL with ANV_SPARSE=0 Fixes: 17b8b2cffdb ("anv: Add support for a transfer queue on Alchemist") Reviewed-by: Sagar Ghuge Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/genX_blorp_exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/genX_blorp_exec.c b/src/intel/vulkan/genX_blorp_exec.c index b9d1902d3b5..c62eff8a7bf 100644 --- a/src/intel/vulkan/genX_blorp_exec.c +++ b/src/intel/vulkan/genX_blorp_exec.c @@ -452,7 +452,7 @@ blorp_exec_on_blitter(struct blorp_batch *batch, assert(batch->flags & BLORP_BATCH_USE_BLITTER); struct anv_cmd_buffer *cmd_buffer = batch->driver_batch; - assert(cmd_buffer->queue_family->queueFlags == VK_QUEUE_TRANSFER_BIT); + assert(anv_cmd_buffer_is_blitter_queue(cmd_buffer)); blorp_exec(batch, params); }