turnip: Execute main cs for secondary command buffers
authorBrian Ho <brian@brkho.com>
Thu, 27 Feb 2020 23:48:43 +0000 (18:48 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 3 Mar 2020 02:25:25 +0000 (02:25 +0000)
commit69628ababbd79a5865c2c5bd01b4a963eb7800f9
treefc305352c785fd217cf0b3c0cc92408be5865389
parent5715a61fa96e8986da82ef263e06db4ef90fb106
turnip: Execute main cs for secondary command buffers

Previously, we only added the secondary command buffer's draw and
draw epilogue command streams to the primary command buffer on
vkCmdExecuteCommands. However, we also need to merge the primary cs
for non-draw operations like vkCmdCopyBuffer and vkCmdBeginQuery.

Fixes dEQP-VK.memory.pipeline_barrier.host_write_transfer_src.*
and various other tests in dEQP-VK.api.command_buffers.*.

Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3988>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3988>
src/freedreno/vulkan/tu_cmd_buffer.c