zink: optimize resource usage tracking
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 6 Oct 2020 20:59:02 +0000 (16:59 -0400)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 15 Mar 2021 01:57:00 +0000 (21:57 -0400)
commitc5029ddf8c01ad6b66e794ffb4789b4dafe31923
tree8f97814b96dd0ee89cf9c3f21b22a85858a08911
parentdb0a71c9ae5a9510ff84146d30518a9e11bf1020
zink: optimize resource usage tracking

we already have the batch usage info here for the resource, so if we know
the resource is already used on the batch then we don't need to also perform
a hash lookup to double check that it's really there

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