zink: add a pipe_context::invalidate_resource hook
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 27 Oct 2020 18:30:20 +0000 (14:30 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 17 Mar 2021 01:40:55 +0000 (01:40 +0000)
commit8c1422dca5ac524a6a57ffaa14556e95126b787f
tree5f35981ab5eda9915ed2a04ec0c16d0ebb0cce27
parentd84c7c2a85c01120f6fea1118fd467a664fce127
zink: add a pipe_context::invalidate_resource hook

this creates new backing objects for the invalidated resource and, if
needed, rebinds it to any descriptor sets it might be used in by invalidating
the descriptor state and creating new view objects

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