zink: add access param for image resource barriers

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

we need more detail on some of these to ensure proper synchronization and availability/visibility of image data between commands/stages

the signature for needs_barrier() is still funky here to avoid breaking usage in update_descriptors()

ab3a2fa6909 zink: add access param for image resource barriers
src/gallium/drivers/zink/zink_clear.c | 4 ++--
src/gallium/drivers/zink/zink_context.c | 33 +++++++++++++++++++-------------
src/gallium/drivers/zink/zink_context.h | 6 +++---
src/gallium/drivers/zink/zink_draw.c | 3 ++-
src/gallium/drivers/zink/zink_resource.c | 12 ++++++------
src/gallium/drivers/zink/zink_resource.h | 2 +-
6 files changed, 34 insertions(+), 26 deletions(-)

Upstream: cgit.freedesktop.org


  • Share