[Bug 46184] dx12 to vkd3d crashes wow, with a screen full of fixme

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Dec 3 13:59:56 CST 2018


https://bugs.winehq.org/show_bug.cgi?id=46184

Sveinar Søpler <cybermax at dexter.no> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cybermax at dexter.no

--- Comment #3 from Sveinar Søpler <cybermax at dexter.no> ---
Józef Kucia
Creating a debuglog as you described created a 35MB gzip logfile just by
logging in, so i suggest you come up with something to narrow the endless spew
of trace messages.

Tbh, i am not able to log in THAT fast.

The snippit i managed to grab just at the crash is:

libs/vkd3d/device.c:2009: d3d12_device_CopyDescriptors: Assertion `dst_idx ==
dst_range_size' failed.
0x80000101 (unknown exception) at 00007f2ad14bfe97 : error 132: ERROR #132
(0x85100084) Fatal exception!

Steve Ebey posted a patch that fixes this crashing:

diff --git a/libs/vkd3d/device.c b/libs/vkd3d/device.c
index cf40e7a..671294b 100644
--- a/libs/vkd3d/device.c
+++ b/libs/vkd3d/device.c
@@ -2006,8 +2006,14 @@ static void STDMETHODCALLTYPE
d3d12_device_CopyDescriptors(ID3D12Device *iface,
         }
     }

-    assert(dst_idx == dst_range_size);
-    assert(dst_range_idx == dst_descriptor_range_count - 1);
+    if (dst_idx == dst_range_size)
+       {
+       assert(dst_idx == dst_range_size);
+       }
+    if (dst_range_idx == dst_descriptor_range_count - 1)
+       {
+       assert(dst_range_idx == dst_descriptor_range_count - 1);
+       }
 }

 static void STDMETHODCALLTYPE d3d12_device_CopyDescriptorsSimple(ID3D12Device
*iface,

I guess this kinda bypasses some checks or whatnot that makes dst_range_size
not crash..

This was tested with git: 09f667ce4eaea2bb8c5e6fa8a79553ba9cf2a6aa

HOWEVER: This WAS better with the last nVidia 415.18.02 driver, but got a LOT
worse with todays post of 415.18.04 that amongst other things fixes performance
in Pandaria zones (w/vkd3d), and various Unity games.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


More information about the wine-bugs mailing list