zink: remove batch tracking/usage from view types
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 1 Sep 2022 13:34:41 +0000 (09:34 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 22 Sep 2022 21:38:47 +0000 (21:38 +0000)
commitf6bbd7875a85ae0f8e96764f1677b68d5469a0a7
treeb6eb62b557234a58bea5dd3a70cc2216fcd48eff
parent9f9dd4f2ac84593ffd4376e007a150f25def8025
zink: remove batch tracking/usage from view types

instead of incurring all the overhead of tracking lifetimes for these,
it makes more sense to just let them delete whenever and then store
the vk object onto its parent image/buffer to be deleted when that gets
freed, as the parent object's lifetime will always be >= the view's lifetime

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18664>
src/gallium/drivers/zink/zink_batch.c
src/gallium/drivers/zink/zink_batch.h
src/gallium/drivers/zink/zink_context.c
src/gallium/drivers/zink/zink_resource.c
src/gallium/drivers/zink/zink_surface.c
src/gallium/drivers/zink/zink_types.h