https://bugs.winehq.org/show_bug.cgi?id=52884
--- Comment #2 from Tomáš Bžatek bugs@bzatek.net --- Thanks, disabling d3d12.dll made it seemingly work (incredible to see apps working just fine with missing libraries).
Also changed the return code to S_OK as suggested and managed to get further! Seems to be reasonably stable now, GPU acceleration is now indicated as enabled though the performance is roughly on the same level as before (GDI rendering only), i.e. rather slow (still around ~3 fps even for basic image zooming and panning).
0124:fixme:dxgi:dxgi_adapter_QueryVideoMemoryInfo Returning fake video memory info. 0124:fixme:dxgi:dxgi_adapter_SetVideoMemoryReservation iface 00000000546510E0, node_index 0, segment_group 0, reservation 0x40000000 stub! 0124:fixme:dxgi:dxgi_adapter_RegisterVideoMemoryBudgetChangeNotificationEvent iface 000000005333E3E0, event 0000000000000620, cookie 000000005333CE18 stub! [tbzatek was here]
This pattern repeats quite often but looks non-fatal, rendering looks okay:
0124:fixme:dxgi:d3d12_swapchain_init Ignoring swap effect 0x4. 0124:fixme:dxgi:wined3d_swapchain_desc_from_dxgi Ignoring scaling 0x1. 0124:fixme:dxgi:wined3d_swapchain_desc_from_dxgi Ignoring alpha mode 0. 0124:fixme:vulkan:X11DRV_vkCreateWin32SurfaceKHR Application requires child window rendering, which is not implemented yet! 0124:fixme:dxgi:hresult_from_vk_result Unhandled VkResult -9.
This is a good first step. I'm open for further debugging, testing patches, etc. Lightroom would greatly benefit from GPU acceleration.