https://bugs.winehq.org/show_bug.cgi?id=54544
Bug ID: 54544 Summary: Men of War: Assault Squad shows a white screen Product: vkd3d Version: 1.6 Hardware: x86-64 OS: Linux Status: NEW Severity: minor Priority: P2 Component: hlsl Assignee: wine-bugs@winehq.org Reporter: andrey.goosev@gmail.com Distribution: ---
0800:err:d3dcompiler:D3DCompile2 Failed to compile shader, vkd3d result -4. 0800:err:d3dcompiler:D3DCompile2 Shader log: 0800:err:d3dcompiler:D3DCompile2 <anonymous>: W4300: Redefinition of . 0800:err:d3dcompiler:D3DCompile2 <anonymous>: W4300: Redefinition of . 0800:err:d3dcompiler:D3DCompile2 <anonymous>: W4300: Redefinition of . 0800:err:d3dcompiler:D3DCompile2 <anonymous>: W4300: Redefinition of . 0800:err:d3dcompiler:D3DCompile2 <anonymous>:337:24: W5300: Implicit truncation of vector type. 0800:err:d3dcompiler:D3DCompile2 <anonymous>:338:24: W5300: Implicit truncation of vector type. 0800:err:d3dcompiler:D3DCompile2 <anonymous>:358:1: E5000: syntax error, unexpected KW_VERTEXSHADER 0800:err:d3dcompiler:D3DCompile2 0800:err:d3dcompiler:D3DCompile2 Failed to compile shader, vkd3d result -4. 0800:err:d3dcompiler:D3DCompile2 Shader log: 0800:err:d3dcompiler:D3DCompile2 <anonymous>: W4300: Redefinition of . 0800:err:d3dcompiler:D3DCompile2 <anonymous>: W4300: Redefinition of . 0800:err:d3dcompiler:D3DCompile2 const.inc:3:1: W4300: Redefinition of TEXTURTILING. 0800:err:d3dcompiler:D3DCompile2 const.inc:5:1: W4300: Redefinition of SHININESS. 0800:err:d3dcompiler:D3DCompile2 const.inc:7:1: W4300: Redefinition of CONTRAST. 0800:err:d3dcompiler:D3DCompile2 <anonymous>:264:15: E5005: Function "tex2D" is not defined. 0800:err:d3dcompiler:D3DCompile2
1.6-125-g7c3dadce
https://bugs.winehq.org/show_bug.cgi?id=54544
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- KW_VERTEXSHADER is about "fx" syntax that we don't generally support yet, and I'm looking at improving this. Depending on how this is compiled, for regular targets such constructs are parsed, validated, but not too much, and then discarded. About not too much, there are degrees of how calls in "pass {}" are checked, we probably could defer deeper checks until writing phase, but keep surface validation for all targets.
Could you please attach full logs for hlsl reports, or just a main argument trace line from D3DCompile2() that shows target name (ps_3_0, ps_4_0, etc) would be enough to know how far it is from working.
https://bugs.winehq.org/show_bug.cgi?id=54544
--- Comment #2 from Andrey Gusev andrey.goosev@gmail.com --- Created attachment 74110 --> https://bugs.winehq.org/attachment.cgi?id=74110 log
Compilation target is fx_2_0.
https://bugs.winehq.org/show_bug.cgi?id=54544
--- Comment #3 from Gijs Vermeulen gijsvrm@gmail.com --- Still present with wine-9.12-182-g6e3dcf6c587 and vkd3d-git (746222b349e9c009ed270fb5ca400497dfb43709)
I only see one reoccuring error in the log:
0024:trace:d3dcompiler:D3DCompile2 data 0582EAD8, data_size 1605, filename (null), macros 00FDFB90, include 00CBC2F0, entry_point (null), profile "fx_2_0", flags 0, effect_flags 0, secondary_flags 0, secondary_data 00000000, secondary_data_size 0, shader_blob 00FDFA04, messages_blob 00FDFA08. 0024:err:d3dcompiler:D3DCompile2 Failed to compile shader, vkd3d result -4. 0024:err:d3dcompiler:D3DCompile2 Shader log: 0024:err:d3dcompiler:D3DCompile2 <anonymous>: W4300: Redefinition of . 0024:err:d3dcompiler:D3DCompile2 <anonymous>: W4300: Redefinition of . 0024:err:d3dcompiler:D3DCompile2 const.inc:3:1: W4300: Redefinition of TEXTURTILING. 0024:err:d3dcompiler:D3DCompile2 const.inc:5:1: W4300: Redefinition of SHININESS. 0024:err:d3dcompiler:D3DCompile2 const.inc:7:1: W4300: Redefinition of CONTRAST. 0024:err:d3dcompiler:D3DCompile2 <anonymous>:286:18: E5000: syntax error, unexpected KW_COMPILE 0024:err:d3dcompiler:D3DCompile2