https://bugs.winehq.org/show_bug.cgi?id=50382
Bug ID: 50382 Summary: Lego Star Wars Saga needs native d3dcompiler_47 Product: Wine Version: 6.0-rc3 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d-util Assignee: wine-bugs@winehq.org Reporter: j-r@online.de Distribution: ---
After installing Lego Star Wars Saga (GOG version) into a fresh 32 bit prefix, the game starts up fine including sound and controls, but with the exception of backgrounds and some effects nothing (logo, menu, in game characters etc) is displayed or replaced by grey boxes.
winetricks d3dcompiler_47 fixes that problem. (An older App DB report using wine 3.3 mentions the same problem and fixing it by installing d3d9.)
There is no console output indicating a problem in that area (recreating the test with wine 3.3 gives plenty of d3dcompiler error messages; perhaps they have been silenced since then?). Since the other d3dcompiler related bugs I checked all seemed to have d3dcompiler error messages I opened this new report, though it very likely still is a duplicate.
Please advise which debug channels to turn on to generate a useful log.
https://bugs.winehq.org/show_bug.cgi?id=50382
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com
--- Comment #1 from Zebediah Figura z.figura12@gmail.com --- +d3dcompiler should probably be sufficient.
https://bugs.winehq.org/show_bug.cgi?id=50382
--- Comment #2 from Gijs Vermeulen gijsvrm@gmail.com --- Created attachment 68997 --> https://bugs.winehq.org/attachment.cgi?id=68997 +d3dcompiler
I can confirm this with wine-6.0-rc3.
Attached is a +d3dcompiler log.
https://bugs.winehq.org/show_bug.cgi?id=50382
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1
--- Comment #3 from Gijs Vermeulen gijsvrm@gmail.com --- Confirming.
https://bugs.winehq.org/show_bug.cgi?id=50382
--- Comment #4 from j-r@online.de --- Still present in 8,0-rc3
https://bugs.winehq.org/show_bug.cgi?id=50382
--- Comment #5 from j-r@online.de --- (In reply to j-r from comment #4)
Still present in 8,0-rc3
Or not. It's different and probably my fault. Ignore this for now. Sorry!
https://bugs.winehq.org/show_bug.cgi?id=50382
--- Comment #6 from j-r@online.de --- Again, sorry that my cluelessness spams your inboxes.
I checked my build and it seems the bundled vkd3d is self contained and I can't do anything wrong:-)
So the result is that the original problem still exists, but the relevant code is now part of vkd3d. I guess that means we move this bug to the vkd3d component.
I've dumped the shader hlsl and parsing fails before any actual shader code on the following definition
string description = "Uber Shader v2.0";
I've looked at the open vkd3d bugs and this particular problem might already be mentioned - as a well known problem? - in https://bugs.winehq.org/show_bug.cgi?id=33979#c4 , but it seems not to be the focus of that or any other bug.
https://bugs.winehq.org/show_bug.cgi?id=50382
Zeb Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Lego Star Wars Saga needs |Lego Star Wars Saga fails |native d3dcompiler_47 |to render some objects | |(needs "string" type | |parsing) Version|6.0-rc3 |1.6 Component|d3d-util |hlsl Product|Wine |vkd3d
--- Comment #7 from Zeb Figura z.figura12@gmail.com --- There's a lot of HLSL bugs, yeah, but at this point we're starting to collect them by specific failure mode. Needing "string" for a normal (not effect) shader is a bit of an unusual one, though :-)
https://bugs.winehq.org/show_bug.cgi?id=50382
snehamahajan snehamahajun@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |snehamahajun@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=50382
Neko-san nekoNexus@protonmail.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nekoNexus@protonmail.ch
https://bugs.winehq.org/show_bug.cgi?id=50382
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |55685
https://bugs.winehq.org/show_bug.cgi?id=50382
--- Comment #8 from Gijs Vermeulen gijsvrm@gmail.com --- With wine-9.14-203-g7df297968a9 and vkd3d-git @ b23874dad600ec777c0bbe6ecc7aa3f5020476d1:
0130:err:d3dcompiler:D3DCompile2 Failed to compile shader, vkd3d result -5. 0130:err:d3dcompiler:D3DCompile2 Shader log: 0130:err:d3dcompiler:D3DCompile2 <anonymous>:126:22: E5017: Aborting due to not yet implemented feature: Evaluate string constants as static expressions. 0130:err:d3dcompiler:D3DCompile2 <anonymous>:187:63: E5000: syntax error, unexpected ':', expecting ';' or ',' 0130:err:d3dcompiler:D3DCompile2
https://bugs.winehq.org/show_bug.cgi?id=50382
--- Comment #9 from Nikolay Sivov bunglehead@gmail.com --- Please retest with current vkd3d, string constants parsing works now.
https://bugs.winehq.org/show_bug.cgi?id=50382
--- Comment #10 from Gijs Vermeulen gijsvrm@gmail.com --- With vkd3d-git @ 6226f533afb8d3fb3523fa44d5c5c1262bbcb331 :
0130:fixme:d3dcompiler:D3DCompile2 Ignoring flags 0x1200. 0130:err:d3dcompiler:D3DCompile2 Failed to compile shader, vkd3d result -4. 0130:err:d3dcompiler:D3DCompile2 Shader log: 0130:err:d3dcompiler:D3DCompile2 <anonymous>:759:1: W4300: Redefinition of USE_projectToEyeSpace. 0130:err:d3dcompiler:D3DCompile2 <anonymous>:231:63: E5000: syntax error, unexpected ':', expecting ';' or ',' 0130:err:d3dcompiler:D3DCompile2
But that's probably a new bug?
https://bugs.winehq.org/show_bug.cgi?id=50382
--- Comment #11 from Nikolay Sivov bunglehead@gmail.com --- Gijs, could you please attach the failing shader?
https://bugs.winehq.org/show_bug.cgi?id=50382
--- Comment #12 from Gijs Vermeulen gijsvrm@gmail.com --- Created attachment 77069 --> https://bugs.winehq.org/attachment.cgi?id=77069 shaders
(In reply to Nikolay Sivov from comment #11)
Here you go. I've attached all of them, but I think vkd3d-shader-2921e750f03413b848340376171f8cc0-vs_3_0-source.hlsl is the one from the comment above.