This MR fixes remaining Clang warnings related to enums for vkd3d in Wine tree, both in mingw and msvc mode.
--
v2: configure: Enable -Wenum-conversion warnings.
gitlab: Remove no longer needed -Wno-enum-conversion from build-mac.
https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/493
---
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