From 336f80137d26230bd124f475bd4382a0c727004f Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 8 Oct 2024 12:35:16 -0400 Subject: [PATCH] radv: fix conditional rendering with DGC preprocessing on compute Preprocess now must use the same conditional rendering state as the execute, so the DGC prepare shader must reset the number of sequences to generate an empty cmdbuf for compute. Cc: mesa-stable Signed-off-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_cmd_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index b3f077701b0..eec666bc2f2 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -11565,7 +11565,7 @@ radv_CmdPreprocessGeneratedCommandsNV(VkCommandBuffer commandBuffer, const bool old_predicating = cmd_buffer->state.predicating; cmd_buffer->state.predicating = false; - radv_prepare_dgc(cmd_buffer, pGeneratedCommandsInfo, false); + radv_prepare_dgc(cmd_buffer, pGeneratedCommandsInfo, old_predicating); /* Restore conditional rendering. */ cmd_buffer->state.predicating = old_predicating;