zink: refactor resource_sync_writes_from_batch_usage() to manage batch id internally
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 28 Oct 2020 17:18:55 +0000 (13:18 -0400)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 18 Mar 2021 03:01:28 +0000 (23:01 -0400)
commitc5390b2ef78df6b56c75d5971551549efa3688e4
tree0cc504f939360c7139e71b8871e92abbb91d8816
parent304ee56cabf95440b37191a539b1a6e230ab1187
zink: refactor resource_sync_writes_from_batch_usage() to manage batch id internally

this is always used the same way, so we can simplify the code a bit for future use

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