v3dv: fix subpass tracking in the command buffer state
authorIago Toral Quiroga <itoral@igalia.com>
Mon, 2 Mar 2020 11:08:19 +0000 (12:08 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:21:28 +0000 (21:21 +0000)
commit44cda4dbfe50dc65107fc8da64b3da51ad086032
tree98711e673edf2cdc647fe1cc0397963929a5e009
parent4a8fdb8ee3013c7184ee288993eb1c5f78d43351
v3dv: fix subpass tracking in the command buffer state

When we create a new job for a new subpass, we might have to finish
the current job for the previous subpass, so it is important that we
we don't get ahead of ourselves and increment the current subpass index
in the command buffer state until we are really done finishing the
previous job.

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