radv: track if nested command buffers uses indirect draws

IB2 packets should be avoided when a cmdbuf executes nested cmdbufs.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28826>
This commit is contained in:
Samuel Pitoiset 2024-04-23 10:46:53 +02:00 committed by Marge Bot
parent 0d18a2f4fb
commit 7de95e7742
1 changed files with 2 additions and 0 deletions

View File

@ -8078,6 +8078,8 @@ radv_CmdExecuteCommands(VkCommandBuffer commandBuffer, uint32_t commandBufferCou
primary->state.last_db_shader_control = secondary->state.last_db_shader_control;
primary->state.rb_noncoherent_dirty |= secondary->state.rb_noncoherent_dirty;
primary->state.uses_draw_indirect |= secondary->state.uses_draw_indirect;
}
/* After executing commands from secondary buffers we have to dirty