protonscr

DIRT 5 - Title requires "Shader Model 6.0 wave operations".

vkd3dclosed appid 1038250
HansKristian-Work/vkd3d-proton#376 · opened 2020-11-10 by ZereoX · updated 2020-11-20 · 10 comments · github · game page · search this game
ZZereoX 2020-11-10 github

Description:

DIRT 5 (1038250) fails to launch immediately after launch with the following error message:

Windows w/ VKD3D-Proton (2.0)
Dirt 5 - 1038250 - SM 6 0 Waves Operations is not supported

This issue was only confirmed on Windows due to Proton 5.13-2-RC1 and Wine-Staging 5.21 both failing with an "Unhandled page fault" error.

The issue was confirmed on both VKD3D-Proton 2.0 and master (d4d14df).

Please let me know if any additional information is required or if additional testing is needed.

Notes:

Software information

DIRT 5 (385800)

System information

OS: Windows 10 Pro 1909
GPU: Nvidia GeForce GTX 1060
Beta Drivers: 457.17
Wine version: N/A
VKD3D-Proton version: 2.0 / Master (d4d14df)

Log files

Trace Log: Dirt_5_VKD3D.log

3508:trace:d3d12_device_QueryInterface: iface 0000000002218f70, riid {74eaee3f-2f4b-476d-82ba-2b85cb49e310}, object 000000000014ef00.
3508:warn:d3d12_device_QueryInterface: {74eaee3f-2f4b-476d-82ba-2b85cb49e310} not implemented, returning E_NOINTERFACE.
Mmisyltoad maintainer 2020-11-10 github

{74eaee3f-2f4b-476d-82ba-2b85cb49e310} = ID3D12DeviceDownLevel for D3D12On7

Ddoitsujin maintainer 2020-11-10 github
    options1->WaveOps = device->d3d12_caps.max_shader_model >= D3D_SHADER_MODEL_6_0;

Not sure why the game thinks we don't support these?

Ddoitsujin maintainer 2020-11-10 github

Actually, looks like our feature reporting is just broken. We should have everything that's necessary but WaveOps is reported as 0, even though we clearly support these.

ZZereoX 2020-11-10 github

Hi @doitsujin,

With https://github.com/HansKristian-Work/vkd3d-proton/pull/378/commits/fd59a62149787914fd5babc0886acee8be39e350 applied to master, the game still throws out an error message at launch, but does indeed no longer complain about wave operations.

The following error is now shown:
DIRT 5 - 1038250 - Error

Trace Log: DIRT 5 - 1038250 - fd59a62.log

Please let me know if there is any other information or attachment I can provide that could be of help.
Thanks.

Mmisyltoad maintainer 2020-11-10 github

Notable section:

1360:trace:d3d12_device_CreatePipelineState: iface 0000000002138f30, desc 000000000014dff8, riid {765a30f3-f624-4c6f-a828-ace948622445}, pipeline_state 0000000023117868.
1360:warn:create_shader_stage: Failed to compile shader, vkd3d result -4.
1360:warn:hresult_from_vkd3d_result: Invalid shader bytecode.
Mmisyltoad maintainer 2020-11-10 github

Would you be able to run with VKD3D_SHADER_DEBUG=trace?

ZZereoX 2020-11-10 github

Hi @Joshua-Ashton,

Here is the log with VKD3D_SHADER_DEBUG=trace set: DIRT 5 - 1038250 - fd59a62 with Shader Trace.log

Ddoitsujin maintainer 2020-11-11 github

Did you build vkd3d with DXIL support? Edit:: Yeah, looks like.

Seems to fail inside dxil-spirv then, assuming that the game uses DXIL shaders.

HHansKristian-Work maintainer 2020-11-11 github

I'll add logging callbacks to dxil-spirv so we can actually log it properly to file.

ZZereoX 2020-11-20 github

Hi @HansKristian-Work,
As written, the issue is resolved, however the game is still failing due to the error mentioned above: https://github.com/HansKristian-Work/vkd3d-proton/issues/376#issuecomment-724905490

Should I open a separate ticket or is there any additional information I can provide here at the moment?