zink: rework xfb counter resource barriers
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 19 Aug 2020 14:40:58 +0000 (10:40 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 19 Feb 2021 02:05:13 +0000 (02:05 +0000)
commitfb14793ebbeb1e993e2ec0f27080a9e2a814b632
tree24977fc69e2c9c43da7a488354b7acaa6675bebc
parentdd858be0115268b0ff2bc118648924c6fd4bb0d6
zink: rework xfb counter resource barriers

using the new helper functions, we can now more accurately determine
exactly which barriers we need/want and avoid setting unnecessary barriers
or ending a renderpass early

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