zink: add a mechanism to track current resource usage in batches

Graphics / Mesa 3D Graphics Library / Mesa - Mike Blumenkrantz [gmail.com] - 14 October 2020 13:20 UTC

this is really primitive, but it at least gives an idea of whether a resource has been submitted for writing in a pending batch

c6687eef2dc zink: add a mechanism to track current resource usage in batches
src/gallium/drivers/zink/zink_batch.c | 28 +++++++++++++++--------
src/gallium/drivers/zink/zink_batch.h | 6 +++--
src/gallium/drivers/zink/zink_blit.c | 8 +++----
src/gallium/drivers/zink/zink_context.c | 10 ++++----
src/gallium/drivers/zink/zink_draw.c | 14 ++++++------
src/gallium/drivers/zink/zink_fence.c | 39 ++++++++++++++++++++++++++++++--
src/gallium/drivers/zink/zink_fence.h | 3 +++
src/gallium/drivers/zink/zink_query.c | 2 +-
src/gallium/drivers/zink/zink_resource.c | 4 ++--
src/gallium/drivers/zink/zink_resource.h | 5 ++++
10 files changed, 88 insertions(+), 31 deletions(-)

Upstream: cgit.freedesktop.org


  • Share