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 <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31563>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user