https://bugs.winehq.org/show_bug.cgi?id=48685
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #2 from Anastasius Focht focht@gmx.net --- Hello folks,
this was fixed by commit https://source.winehq.org/git/wine.git/commitdiff/cb8de48f7788270d6b581893d4... ("d3dx11: Partially implement D3DX11CompileFromFile{A, W}().").
Part of Wine 5.15 release.
Thanks Jactry (and for the reminder)
It currently crashes due to insufficiencies in Wine D3D compiler (bug 45038 et al).
--- snip --- $ WINEDEBUG=+seh,+relay,+d3d,+d3dcompiler wine ./d3d11Blending.exe >>log.txt 2>&1 ... 017c:Call d3dx11_42.D3DX11CompileFromFileW(0040437c L"Effects.fx",00000000,00000000,00404378 "VS",00404370 "vs_4_0",00000000,00000000,00000000,004053c8,00000000,00000000) ret=004016ed ... 017c:Call d3dcompiler_47.D3DCompileFromFile(0040437c L"Effects.fx",00000000,00000001,00404378 "VS",00404370 "vs_4_0",00000000,00000000,004053c8,00000000) ret=006d193f ... 017c:trace:d3dcompiler:compile_shader Compiler messages: 017c:trace:d3dcompiler:compile_shader "Effects.fx:2:8: error: syntax error, unexpected KW_CBUFFER\n" 017c:trace:d3dcompiler:compile_shader Shader source: 017c:trace:d3dcompiler:compile_shader "# 1 "Effects.fx" 1\n\r\ncbuffer cbPerObject\r\n{\r\n\tfloat4x4 WVP;\r\n};\r\n\r\nTexture2D ObjTexture;\r\nSamplerState ObjSamplerState;\r\n\r\nstruct VS_OUTPUT\r\n{\r\n\tfloat4 Pos : SV_POSITION;\r\n\tfloat2 TexCoord : TEXCOORD;\r\n};\r\n\r\nVS_OUTPUT VS(float4 inPos : POSITION, float2 in"... ... 017c:Ret d3dcompiler_47.D3DCompileFromFile() retval=80004005 ret=006d193f 017c:Ret d3dx11_42.D3DX11CompileFromFileW() retval=80004005 ret=004016ed 017c:Call d3dx11_42.D3DX11CompileFromFileW(0040437c L"Effects.fx",00000000,00000000,0040439c "PS",00404394 "ps_4_0",00000000,00000000,00000000,00405404,00000000,00000000) ret=0040170f 017c:Call d3dcompiler_47.D3DCompileFromFile(0040437c L"Effects.fx",00000000,00000001,0040439c "PS",00404394 "ps_4_0",00000000,00000000,00405404,00000000) ret=006d193f ... 017c:trace:d3dcompiler:D3DCompileFromFile filename L"Effects.fx", defines 00000000, include 00000001, entrypoint "PS", target "ps_4_0", flags1 0, flags2 0, code 00405404, errors 00000000. ... 017c:trace:d3dcompiler:D3DCompile data 00191108, data_size 493, filename "Effects.fx", defines 00000000, include 00000001, entrypoint "PS", target "ps_4_0", sflags 0, eflags 0, shader 00405404, error_messages 00000000. 017c:trace:d3dcompiler:D3DCompile2 data 00191108, data_size 493, filename "Effects.fx", defines 00000000, include 00000001, entrypoint "PS", target "ps_4_0", sflags 0, eflags 0, secondary_flags 0, secondary_data 00000000, secondary_data_size 0, shader 00405404, error_messages 00000000. ... 017c:trace:d3dcompiler:compile_shader Compiler messages: 017c:trace:d3dcompiler:compile_shader "Effects.fx:2:8: error: syntax error, unexpected KW_CBUFFER\n" 017c:trace:d3dcompiler:compile_shader Shader source: 017c:trace:d3dcompiler:compile_shader "# 1 "Effects.fx" 1\n\r\ncbuffer cbPerObject\r\n{\r\n\tfloat4x4 WVP;\r\n};\r\n\r\nTexture2D ObjTexture;\r\nSamplerState ObjSamplerState;\r\n\r\nstruct VS_OUTPUT\r\n{\r\n\tfloat4 Pos : SV_POSITION;\r\n\tfloat2 TexCoord : TEXCOORD;\r\n};\r\n\r\nVS_OUTPUT VS(float4 inPos : POSITION, float2 in"... ... 017c:Ret d3dcompiler_47.D3DCompileFromFile() retval=80004005 ret=006d193f 017c:Ret d3dx11_42.D3DX11CompileFromFileW() retval=80004005 ret=0040170f 017c:trace:seh:dispatch_exception code=c0000005 flags=0 addr=00401720 ip=00401720 tid=017c 017c:trace:seh:dispatch_exception info[0]=00000000 017c:trace:seh:dispatch_exception info[1]=00000000 017c:trace:seh:dispatch_exception eax=00000000 ebx=0031fe70 ecx=462b3d83 edx=00000000 esi=00000000 edi=006ac6c8 017c:trace:seh:dispatch_exception ebp=0031fe60 esp=0031f9a0 cs=0023 ds=002b es=002b fs=0063 gs=006b flags=00210216 017c:trace:seh:call_vectored_handlers calling handler at 7B00F270 code=c0000005 flags=0 017c:trace:seh:call_vectored_handlers handler at 7B00F270 returned 0 017c:trace:seh:call_stack_handlers calling handler at 00403599 code=c0000005 flags=0 --- snip ---
With 'winetricks -q d3dcompiler_47' it runs into bug 48804
--- snip --- wine: Call from 7B00FF28 to unimplemented function d3dx11_42.dll.D3DX11CreateShaderResourceViewFromFileW, aborting wine: Unimplemented function d3dx11_42.dll.D3DX11CreateShaderResourceViewFromFileW called at address 7B00FF28 (thread 01d0), starting debugger... --- snip ---
$ wine --version wine-6.0-rc6
Regards