The current implementation based on `IOPMCopyBatteryInfo` does not work (macOS 13.2, M2 Max, returns `kIOReturnUnsupported`) and is not recommended/supported by Apple:
> WARNING! IOPMCoyBatteryInfo is unsupported on ALL Intel CPU based systems. For PPC CPU based systems, it remains not recommended. For almost all purposes, developers should use the richer IOPowerSources API (with change notifications) instead of using IOPMCopyBatteryInfo. Keys to decipher IOPMCopyBatteryInfo's return CFArray exist in IOPM.h.
--
v8: ntdll: Use IOPowerSources API to fill battery info on macOS
https://gitlab.winehq.org/wine/wine/-/merge_requests/2283
--
v2: dxgi: Reset the back buffer index to zero on ResizeBuffers().
dxgi/tests: Test that ResizeBuffers() resets the back buffer index to zero.
dxgi: Always assume that a D3D12 swapchain always uses user images.
dxgi: Immediately error out when creating a D3D12 swapchain on a non-immediate queue.
dxgi/tests: Test that D3D12 swapchains can only be created on direct command queues.
https://gitlab.winehq.org/wine/wine/-/merge_requests/2296
It's probably worth pointing out that this has quite some potential for causing regressions in performance. swapchain_blit_gdi() is not fast, and ideally we'd work on reducing the number of cases where it's needed.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/2299#note_25724
Matteo Bruni (@Mystral) commented about dlls/wined3d/context_gl.c:
> current = gl_info->gl_ops.wgl.p_wglGetPixelFormat(dc);
> if (current == format) goto success;
>
> + if (current && !private)
> + return FALSE;
I guess we could add a WARN("Using pixel format %u already set on DC %p.\n", current, dc); or something.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/2299#note_25713
--
v4: vkd3d: Do not keep the CS queue locked while processing it.
vkd3d: Always enqueue CS operations, even if they can be executed right away.
vkd3d: Hold the queue mutex when adding the queue to a blocked list.
vkd3d: Mention the correct mutex in a comment.
https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/94