zink: avoid emitting unnecessary pipeline barriers during update_descriptors
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 19 Aug 2020 19:44:37 +0000 (15:44 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 19 Feb 2021 02:05:13 +0000 (02:05 +0000)
commit017dbd63fb9544863705903e696368c5bf9cb725
tree1dab42cba2c6d4dce25f2a833823b6440137813c
parent5d7cb2495ad163671b95f58ac606c11a958b4a9a
zink: avoid emitting unnecessary pipeline barriers during update_descriptors

if the current state of the resource matches the desired state, we don't need
to emit anything, and we can potentially avoid ending a renderpass

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8945>
src/gallium/drivers/zink/zink_draw.c