24 Nov
2023
24 Nov
'23
11:11 a.m.
--- I don't see a method to wait for a fence, at least not without having a command queue. A suggestion I found online goes along the lines of: if (fence->GetCompletedValue != expected) { HANDLE ev = CreateEvent(...); fence->SetEventOnCompletion(expected, ev); WaitForSingleObject(ev, INFINITE); CloseHandle(ev); } Which I could write, but would be untested dead code as long as the other method is a stub. So busy waiting and writing one fixme every time we busy wait seems like a better choice for now. -- v2: vkd3d: Forward MakeResident to EnqueueMakeResident. vkd3d: Improve the EnqueueMakeResident stub. https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/488