On Thu Aug 20 23:39:42 2026 +0000, Stian Low wrote:
These logs seem to be part of the problem for rtv views rotations only which happen for master without any of my changes so it seems this merge may be exposing another discrepancy similar to test fails that may be fixed via !11690: `0024:err:d3d:wined3d_swapchain_resize_buffers Something's still holding back buffer 0 (00007FFFFE88E5D0), swapchain 00007FFFFE88DBE0.` Skipping `swapchain->back_buffers[i]->swapchain = NULL;` for `wined3d_swapchain_resize_buffers` prevents NieR from crashing with backtrace. It creates two swapchains with one as the parent of the other which seems less common unless I've been overlooking that scenario for other games. Still unclear if its actually related to whatever is causing the crash. I added additional wined3d_lock/unlocks but it seems to just be adding redundancies of what is already wrapped so whatever is holding back buffer 0 seems fairly subtle which again seems related to bug-58325. ERR logs for back buffer 0 being held back for swapchain resize was introduced a few years ago:
``` ebaa0a9426864cfa6e36955f26ff4c66c1d5af76 Author: Elizabeth Figura <zfigura@codeweavers.com> CommitDate: Thu Jun 29 12:04:35 2023 +0200 wined3d: Recreate swapchain textures in wined3d_swapchain_resize_buffers(). ``` Originally swapchain backbuffers were reused with `wined3d_texture_update_desc` vs deref/destroyed and recreated. Unclear if back buffers still being held for resize was a regression but the commit seems to have correctly added an ERR message whenever it happens as @stefan referenced from MSDN: - https://learn.microsoft.com/en-us/windows/win32/api/dxgi/nf-dxgi-idxgiswapch... However according to MSDN, if that ERR is ever logged then it is expected to return an error code instead of S_OK. Unclear if returning error code for ERR log was skipped to reduce risks of breaking apps but it definitely breaks NieR without whatever is holding back buffer back is fixed which seems like a bug. I added some extra logs and confirmed that a UAV is involved for incrementing back buffer 0 on init +1 greater than the other 2 backbuffers for NieR but still unclear if this means UAVs may also need to be handled and rotated by this merge. I will try to add some basic UAV rotation handling since it may need to be handled eventually anyways to see if resolves the ERR log. If not then I'll preserve the UAV logic to be split as a separate merge later. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10567#note_149531