mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-21 13:00:22 +01:00
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: 17b8b2cffd ("anv: Add support for a transfer queue on Alchemist")
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29336>
This commit is contained in:
parent
e6d9201c6c
commit
8d098ecfea
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue