doitsujin / dxvk

Vulkan-based implementation of D3D8, 9, 10 and 11 for Linux / Wine
zlib License
12.95k stars 832 forks source link

[D3D9 Regression] Test Drive Unlimited 2 broken reflections in missions on DXVK 2.0 and up #3799

Open koffiato opened 8 months ago

koffiato commented 8 months ago

Software information

Tested TDU2 both vanilla and modded. DXVK 2.0 and up exhibit issues with car reflections within the delivery missions (bomb icon on the map). Open world, interiors and races are fine however. 1.10.3 and lower (tried 1.5.4) appear to work fine.

DXVK 2.3 Screenshot (355)

DXVK 1.10.3 Screenshot (356)

System information

Apitrace file(s)

Log files

Blisto91 commented 8 months ago

This seems like a driver issue. I can reproduce with the trace using amdvlk.Q3.1 on linux, which should correspond ish to 23.8.1/23.8.2 on Windows i believe. Using amdvlk.Q3.2 it is fine again so 23.10.2 and above should probably also be fine in regards to this.

koffiato commented 8 months ago

Just tried updating to 23.10.2 per your suggestion and the game just crashes at startup with the attached log. Tried running it with 1.10.3, 2.3 and https://github.com/doitsujin/dxvk/commit/ac78048c23c946caf0c734972e880f960080dd62. TestDrive2_d3d9.log

Blisto91 commented 8 months ago

I am not reproducing a startup crash on Linux with amdvlk (also non newest versions) or radv at least. Testing using a RX 6800

koffiato commented 8 months ago

Sorry for the late reply here. I've now tested all available AMD drivers on Linux and couldn't recreate this problem (nor the crash on Windows). Seems like this is a driver issue.

Blisto91 commented 8 months ago

Try again with the newly released AMD driver.

koffiato commented 8 months ago

Tried running both TDU and TDU2 with the new driver and both game still crash with err: D3D9SwapChainEx: Failed to recreate swap chain: -13

mirh commented 7 months ago

Can you try with these intermediate versions (rename to d3d9.dll ofc)?

koffiato commented 7 months ago

Unfortunately issue persists, every single version in the archive returned Error -13 as usual. Tried latest master, https://github.com/doitsujin/dxvk/commit/5312ef1cf9c201d20048f9e796d21b436420fd49 as well.

mirh commented 7 months ago

I meant for the glitches, not for the error which is really out of the blue.

koffiato commented 2 months ago

Update for this issue. Cannot create the visual glitches in cubemaps on RADV. However the game itself is crashing on startup with the error mentioned above on anything above 23.8.2 drivers on Windows. Here's an apitrace with DXVK thanks to Blisto91.

koffiato commented 3 days ago

Update on this issue again. Using the 24.20.11.01 drivers and DXVK 2.4.1; DXVK is once again able to log err: D3D9SwapChainEx: Failed to recreate swap chain: -13 and then crash.