zink: add and use fencing functions which take batch usage structs
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 7 May 2021 12:45:15 +0000 (08:45 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 22 Jun 2021 20:57:33 +0000 (20:57 +0000)
commit1226628eb652171943cee3e79b61a0bdf1b9c2d1
tree762df1574d58d43a40ac2ef37e87f60df2e20482
parent982a2dfbd4a45cfed50e4f7f77702eb27b4f866f
zink: add and use fencing functions which take batch usage structs

this hides the exact mechanics of fencing based on batch usage and makes
the usage a bit more explicit

Acked-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11437>
src/gallium/drivers/zink/zink_batch.c
src/gallium/drivers/zink/zink_batch.h
src/gallium/drivers/zink/zink_resource.c