From e96be348f2f4c5c2c796807386c7402a5a718001 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 29 Aug 2024 11:11:57 +0200 Subject: [PATCH] radv: move emitting the compute pipeline with DGC Only compute is supported. Signed-off-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_device_generated_commands.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/amd/vulkan/radv_device_generated_commands.c b/src/amd/vulkan/radv_device_generated_commands.c index 6a814c9cb32..d0aa44dbac7 100644 --- a/src/amd/vulkan/radv_device_generated_commands.c +++ b/src/amd/vulkan/radv_device_generated_commands.c @@ -1933,10 +1933,6 @@ build_dgc_prepare_shader(struct radv_device *dev, struct radv_indirect_command_l dgc_emit_push_constant(&cmd_buf, stream_addr, upload_offset, stages); } - if (layout->bind_pipeline) { - dgc_emit_bind_pipeline(&cmd_buf, stream_addr, upload_offset); - } - if (layout->pipeline_bind_point == VK_PIPELINE_BIND_POINT_GRAPHICS) { if (layout->indexed) { /* Emit direct draws when index buffers are also updated by DGC. Otherwise, emit @@ -1963,6 +1959,10 @@ build_dgc_prepare_shader(struct radv_device *dev, struct radv_indirect_command_l } } } else { + if (layout->bind_pipeline) { + dgc_emit_bind_pipeline(&cmd_buf, stream_addr, upload_offset); + } + dgc_emit_dispatch(&cmd_buf, stream_addr, sequence_id); }