radv: fix possible hangs with NGG streamout and secondary cmdbuf

This was missing but it might hang if streamout is used only in
secondary command buffers.
Found by inspection.

Cc: 22.3 mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19801>
This commit is contained in:
Samuel Pitoiset
2022-11-17 04:43:33 +00:00
committed by Marge Bot
parent 3189be249d
commit c9f0b7b042
+2
View File
@@ -6765,6 +6765,8 @@ radv_CmdExecuteCommands(VkCommandBuffer commandBuffer, uint32_t commandBufferCou
primary->sample_positions_needed = true;
if (secondary->gds_needed)
primary->gds_needed = true;
if (secondary->gds_oa_needed)
primary->gds_oa_needed = true;
if (!secondary->state.render.has_image_views && primary->state.render.active &&
(primary->state.dirty & RADV_CMD_DIRTY_FRAMEBUFFER)) {