radv: Only call si_cp_dma_wait_for_idle on GFX and ACE queues.
This command is only supported on GFX and ACE. Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25770>
This commit is contained in:
@@ -6232,13 +6232,12 @@ radv_EndCommandBuffer(VkCommandBuffer commandBuffer)
|
||||
}
|
||||
|
||||
si_emit_cache_flush(cmd_buffer);
|
||||
}
|
||||
|
||||
/* Make sure CP DMA is idle at the end of IBs because the kernel
|
||||
* doesn't wait for it.
|
||||
*/
|
||||
if (cmd_buffer->qf != RADV_QUEUE_VIDEO_DEC)
|
||||
/* Make sure CP DMA is idle at the end of IBs because the kernel
|
||||
* doesn't wait for it.
|
||||
*/
|
||||
si_cp_dma_wait_for_idle(cmd_buffer);
|
||||
}
|
||||
|
||||
radv_describe_end_cmd_buffer(cmd_buffer);
|
||||
|
||||
|
Reference in New Issue
Block a user