radv: Only call si_cp_dma_wait_for_idle on GFX and ACE queues.
authorTimur Kristóf <timur.kristof@gmail.com>
Fri, 29 Sep 2023 15:47:40 +0000 (17:47 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 19 Oct 2023 14:35:00 +0000 (14:35 +0000)
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>

src/amd/vulkan/radv_cmd_buffer.c

index 5d67233..b382d8f 100644 (file)
@@ -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);