wined3d: Remove BO users from the list when invalidating them.
commitb2f13103d7d96fc082b91b8e808599836ed4a2b1
authorZebediah Figura <zfigura@codeweavers.com>
Tue, 18 Jul 2023 00:36:54 +0000 (17 19:36 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 10 Aug 2023 00:53:14 +0000 (10 09:53 +0900)
tree8a29ddad9065e4959d120a9da468426a9f1b7ca3
parent8b5a3bc8325c4276686d5aa73353e4f7a2253670
wined3d: Remove BO users from the list when invalidating them.

This makes it easier to invalidate in the case where multiple resources share
the same BO, which in turn is necessary to implement copy-on-write semantics for
BOs.

This is also necessary if we ever want to evict resources which have views,
although it's not clear if this will ever be necessary. If nothing else, though,
it removes that implicit dependency.
dlls/wined3d/adapter_vk.c
dlls/wined3d/buffer.c
dlls/wined3d/context_gl.c
dlls/wined3d/context_vk.c
dlls/wined3d/state.c
dlls/wined3d/texture.c
dlls/wined3d/view.c
dlls/wined3d/wined3d_private.h