doitsujin / dxvk

Vulkan-based implementation of D3D9, D3D10 and D3D11 for Linux / Wine
zlib License
12.25k stars 783 forks source link

[d3d10] Renegade Ops: hangs on launch with a black screen #4095

Closed ranplayer closed 3 days ago

ranplayer commented 3 days ago

Renegade Ops fails to launch with a black screen. By the Proton log it seems something related to the D3D compiler:

1241.129:012c:01b0:err:d3dcompiler:D3DCompile2 Failed to compile shader, vkd3d result -4.
1241.129:012c:01b0:err:d3dcompiler:D3DCompile2 Shader log:
1241.129:012c:01b0:err:d3dcompiler:D3DCompile2     <anonymous>:6:121: W5300: Implicit truncation of vector type.
1241.129:012c:01b0:err:d3dcompiler:D3DCompile2     <anonymous>:6:225: W5300: Implicit truncation of vector type.
1241.129:012c:01b0:err:d3dcompiler:D3DCompile2     <anonymous>:6:160: W5017: Loop unrolling is not implemented.
1241.129:012c:01b0:err:d3dcompiler:D3DCompile2     <anonymous>:6:243: E5002: Expected literal sample index.
1241.129:012c:01b0:err:d3dcompiler:D3DCompile2 

The current workaround I've found to make it work is to download d3dcompiler_47 (32bit) to the game's folder. I'm not sure if this is Wine or DXVK related. Is there any DXVK property I could try with this one ?

Software information

System information

Log files

K0bin commented 3 days ago

D3DCompiler is a separate DLL that's not implemented by DXVK but by Wine. So the log warnings and errors you posted are not caused by DXVK either.

If Microsofts d3dcompiler DLL fixes it, that proves it's a problem with the d3dcompiler implementation provided by Wine and not a DXVK issue.

ranplayer commented 2 days ago

@K0bin Thank you for the explanation. I completely forgot to test this one with WineD3D. There is an open bug on the Wine tracker: https://bugs.winehq.org/show_bug.cgi?id=54973. Sorry, folks...