v3dv: handle draw after barrier
authorIago Toral Quiroga <itoral@igalia.com>
Mon, 29 Jun 2020 10:39:53 +0000 (12:39 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:21:31 +0000 (21:21 +0000)
commit56fcc085fb0b782385332e4b28cb6bbb540720c7
treef9f48674356482d43fabac508a69b40f0d9c10b8
parent8116d65fbc20002886aa1a6e5de0fbfb5f8b8bf9
v3dv: handle draw after barrier

Currently, we end the current job whenever the user emits a
pipeline barrier, but we then expect to have a valid job when
we emit a draw call.

If by the time we have to emit a draw call we don't have a valid
job, we need to create one by resuming execution of the current
subpass.

Fixes some tests in:
dEQP-VK.renderpass.suballocation.attachment_allocation.input_output.*

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
src/broadcom/vulkan/v3dv_cmd_buffer.c