zink: add access info for update_descriptor image barriers

Graphics / Mesa 3D Graphics Library / Mesa - Mike Blumenkrantz [gmail.com] - 19 February 2021 02:05 UTC

this forces resources to transition where necessary to ensure that data from previous ops have been made available (e.g., clear -> shader image)

we also switch needs_barrier over to a more accurate signature here since we can now do it without breaking update_descriptors()

7d6c90826de zink: add access info for update_descriptor image barriers
src/gallium/drivers/zink/zink_context.c | 4 ++--
src/gallium/drivers/zink/zink_context.h | 2 +-
src/gallium/drivers/zink/zink_draw.c | 29 +++++++++++++++++++----------
3 files changed, 22 insertions(+), 13 deletions(-)

Upstream: cgit.freedesktop.org


  • Share