zink: emit some barriers out of renderpass where possible
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 15 Jan 2021 18:21:09 +0000 (13:21 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 14 May 2021 13:15:07 +0000 (13:15 +0000)
commit0f04a90ea331da353634c686600cc1bc93def71a
tree42f189fd5e0d9b51be7e8d1cf61ea79d7b5077fd
parentf1ec655e4725b118ae87d20d0616884c2adfec3f
zink: emit some barriers out of renderpass where possible

when emitting barriers, we don't need to end the renderpass in some cases

this handles the case of emitting barriers for new resources which have
never before been accessed and thus do not require synchronization at a
specific point in the batch

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10700>
src/gallium/drivers/zink/zink_batch.c
src/gallium/drivers/zink/zink_batch.h
src/gallium/drivers/zink/zink_context.c
src/gallium/drivers/zink/zink_resource.c
src/gallium/drivers/zink/zink_resource.h