Module: Mesa Branch: main Commit: cd41d9e96dd28f670e66016b36911f556ee88248 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cd41d9e96dd28f670e66016b36911f556ee88248
Author: Timur Kristóf <[email protected]> Date: Fri Sep 29 17:47:40 2023 +0200 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 <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25770> --- src/amd/vulkan/radv_cmd_buffer.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 5d6723397c8..b382d8f8566 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -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);
