turnip: Fix execution of secondary cmd bufs with nothing in primary.
authorEric Anholt <eric@anholt.net>
Wed, 22 Jan 2020 21:19:32 +0000 (13:19 -0800)
committerMarge Bot <eric+marge@anholt.net>
Thu, 23 Jan 2020 20:27:26 +0000 (20:27 +0000)
commitfbd9b4ce08fe16e0a0aa5511cbb6d14401e0cd50
tree5687d476c4fdcb94e62eda86e7ade13fab2f8d63
parentd6d6ef2862578ab6172f54b8378489e5bcc08166
turnip: Fix execution of secondary cmd bufs with nothing in primary.

We want to finish off cmd emission in the primary CS and add its entry to
the IB, but regardless of whether there had been anything in the primary
CS to emit, we still need a reserved CS entry for the loop below.

Fixes crashes in dEQP-VK.binding_model.shader_access.secondary_cmd_buf.*
and many more in dEQP-VK.renderpass*

Reviewed-by: Jonathan Marek <jonathan@marek.ca>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3524>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3524>
src/freedreno/vulkan/tu_cs.c