Module: wine Branch: master Commit: b2f13103d7d96fc082b91b8e808599836ed4a2b1 URL: https://gitlab.winehq.org/wine/wine/-/commit/b2f13103d7d96fc082b91b8e8085998...
Author: Zebediah Figura zfigura@codeweavers.com Date: Mon Jul 17 19:36:54 2023 -0500
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 | 11 +++++------ dlls/wined3d/buffer.c | 26 +++++++++++++------------- dlls/wined3d/context_gl.c | 24 ++++++++++++------------ dlls/wined3d/context_vk.c | 2 ++ dlls/wined3d/state.c | 6 +++--- dlls/wined3d/texture.c | 3 ++- dlls/wined3d/view.c | 21 +++++++++++++++++---- dlls/wined3d/wined3d_private.h | 8 ++++++++ 8 files changed, 62 insertions(+), 39 deletions(-)