https://bugs.winehq.org/show_bug.cgi?id=47713
Bug ID: 47713 Summary: Control crashes at launch with vkd3d Product: vkd3d Version: 1.1 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: vkd3d Assignee: wine-bugs@winehq.org Reporter: berillions@gmail.com Distribution: ---
Created attachment 65184 --> https://bugs.winehq.org/attachment.cgi?id=65184 WINEDEBUG=+vkd3d VKD3D_DEBUG="trace" output log
Hello,
The game has two separate executable, once for d3d11 and the second for d3d12. The game works correctly with Dx11/DXVK but crashes at launch when i want launch it with vkd3d.
You can find the "WINEDEBUG=+vkd3d VKD3D_DEBUG="trace"" output log attached. The backtrace is this : Backtrace: =>0 0x00007fe4ac02bbe7 vkd3d_serialize_root_signature+0xffffffffffffffff() in libvkd3d.so.1 (0x00007fe4a4c409d0) 1 0x00007fe4ac02bdcb vkd3d_serialize_root_signature+0xffffffffffffffff() in libvkd3d.so.1 (0x00007fe4a4c409d0) 2 0x0000000003f2cd55 EntryPoint+0xffffffffffffffff() in d3d_rmdwin10_f (0x00000000198ea7e0) 3 0x0000000003f3ae50 EntryPoint+0xffffffffffffffff() in d3d_rmdwin10_f (0x000000000bbae070) 4 0x0000000003f3e485 EntryPoint+0xffffffffffffffff() in d3d_rmdwin10_f (0x000000000bbae070) 5 0x0000000002d3bf8c EntryPoint+0xffffffffffffffff() in renderer_rmdwin10_f (0x000000003590fbf0) 6 0x0000000002d3afcd EntryPoint+0xffffffffffffffff() in renderer_rmdwin10_f (0x000000003d2f5800) 0x00007fe4ac02bbe7 vkd3d_serialize_root_signature+0xffffffffffffffff in libvkd3d.so.1: movq 0x0000000000000028(%r8),%r9
https://bugs.winehq.org/show_bug.cgi?id=47713
Esdras Tarsis esdrastarsis@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |esdrastarsis@gmail.com
--- Comment #1 from Esdras Tarsis esdrastarsis@gmail.com --- (In reply to Berillions from comment #0)
Created attachment 65184 [details] WINEDEBUG=+vkd3d VKD3D_DEBUG="trace" output log
Hello,
The game has two separate executable, once for d3d11 and the second for d3d12. The game works correctly with Dx11/DXVK but crashes at launch when i want launch it with vkd3d.
You can find the "WINEDEBUG=+vkd3d VKD3D_DEBUG="trace"" output log attached. The backtrace is this : Backtrace: =>0 0x00007fe4ac02bbe7 vkd3d_serialize_root_signature+0xffffffffffffffff() in libvkd3d.so.1 (0x00007fe4a4c409d0) 1 0x00007fe4ac02bdcb vkd3d_serialize_root_signature+0xffffffffffffffff() in libvkd3d.so.1 (0x00007fe4a4c409d0) 2 0x0000000003f2cd55 EntryPoint+0xffffffffffffffff() in d3d_rmdwin10_f (0x00000000198ea7e0) 3 0x0000000003f3ae50 EntryPoint+0xffffffffffffffff() in d3d_rmdwin10_f (0x000000000bbae070) 4 0x0000000003f3e485 EntryPoint+0xffffffffffffffff() in d3d_rmdwin10_f (0x000000000bbae070) 5 0x0000000002d3bf8c EntryPoint+0xffffffffffffffff() in renderer_rmdwin10_f (0x000000003590fbf0) 6 0x0000000002d3afcd EntryPoint+0xffffffffffffffff() in renderer_rmdwin10_f (0x000000003d2f5800) 0x00007fe4ac02bbe7 vkd3d_serialize_root_signature+0xffffffffffffffff in libvkd3d.so.1: movq 0x0000000000000028(%r8),%r9
Have you tested without AmdCOmpiler (ACO)?
https://bugs.winehq.org/show_bug.cgi?id=47713
Berillions berillions@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Control crashes at launch |Control crashes with |with vkd3d |"d3d12_command_allocator_al | |locate_descriptor_set"
https://bugs.winehq.org/show_bug.cgi?id=47713
Berillions berillions@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #65184|0 |1 is obsolete| |
--- Comment #2 from Berillions berillions@gmail.com --- Created attachment 68262 --> https://bugs.winehq.org/attachment.cgi?id=68262 New WINEDEBUG=+vkd3d VKD3D_DEBUG="trace" output log
This new try was done with vkd3d 1.2 + wine-5.17 + Mesa 20.2.0-rc4
https://bugs.winehq.org/show_bug.cgi?id=47713
Andrey Gusev andrey.goosev@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW
--- Comment #3 from Andrey Gusev andrey.goosev@gmail.com --- Confirming. vkd3d-1.2-535-g04bb6c3
On AMD it crashes with
fixme:vkd3d_create_texture_uav: Unhandled depth view 0-4294967295. fixme:d3d12_fence_init: Ignoring flags 0x1. fixme:d3d12_command_allocator_allocate_descriptor_set: Failed to allocate descriptor set from a new pool, vr -1000069000.
On NVIDIA just a black screen with sound and lots of
err:vkd3d_wait_for_gpu_fences: Failed to wait for Vulkan fences, vr -4.
https://bugs.winehq.org/show_bug.cgi?id=47713
Conor McCarthy cmccarthy@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |cmccarthy@codeweavers.com
--- Comment #4 from Conor McCarthy cmccarthy@codeweavers.com --- I have patches for this, but they need to go on top of the unbounded descriptor range patches which are still being reviewed, and they need to be rebased too, so I haven't sent them yet. The crash happens because the game uses bindings with 244,000 descriptors (!), while vkd3d currently only supports up to 1024.
https://bugs.winehq.org/show_bug.cgi?id=47713
--- Comment #5 from Berillions berillions@gmail.com --- (In reply to Conor McCarthy from comment #4)
I have patches for this, but they need to go on top of the unbounded descriptor range patches which are still being reviewed, and they need to be rebased too, so I haven't sent them yet. The crash happens because the game uses bindings with 244,000 descriptors (!), while vkd3d currently only supports up to 1024.
Connor, Do you news about these patches ? Thanks
https://bugs.winehq.org/show_bug.cgi?id=47713
--- Comment #6 from Conor McCarthy cmccarthy@codeweavers.com --- Created attachment 71194 --> https://bugs.winehq.org/attachment.cgi?id=71194 Vulkan-backed descriptor heaps and performance optimisations
Turns out it needed a lot more work, mostly a new Vulkan-backed descriptor heap implementation. The attached diff works very well, but it will be a while before everything is upstream.
https://bugs.winehq.org/show_bug.cgi?id=47713
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
--- Comment #7 from winetest@luukku.com --- please add keyword patch.
https://bugs.winehq.org/show_bug.cgi?id=47713
temp82@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |temp82@luukku.com
--- Comment #8 from temp82@luukku.com --- (In reply to Conor McCarthy from comment #6)
Created attachment 71194 [details] Vulkan-backed descriptor heaps and performance optimisations
Turns out it needed a lot more work, mostly a new Vulkan-backed descriptor heap implementation. The attached diff works very well, but it will be a while before everything is upstream.
any update on this?
https://bugs.winehq.org/show_bug.cgi?id=47713
Conor McCarthy cmccarthy@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #9 from Conor McCarthy cmccarthy@codeweavers.com --- Fixed by 2b71ea40.
https://bugs.winehq.org/show_bug.cgi?id=47713
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #10 from Nikolay Sivov bunglehead@gmail.com --- Closing bugs fixed in 1.10.