http://bugs.winehq.org/show_bug.cgi?id=36091
Bug ID: 36091 Summary: Project APT fails to compile vertex shader Product: Wine Version: 1.7.17 Hardware: x86 URL: http://www.desura.com/games/project-apt OS: Linux Status: NEW Severity: normal Priority: P2 Component: directx-d3dx9 Assignee: wine-bugs@winehq.org Reporter: madewokherd@gmail.com
Created attachment 48280 --> http://bugs.winehq.org/attachment.cgi?id=48280 d3dcompiler,tid log
When clicking "new game" in project apt, I get a message saying "FATAL ERROR in Vertex Shader compilation". The console shows an error in compile_shader, and messages in the d3dcompiler channel seem to match up with the details of the game's error message.
http://bugs.winehq.org/show_bug.cgi?id=36091
Vincent Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |madewokherd@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=36091
--- Comment #1 from Austin English austinenglish@gmail.com --- This is your friendly reminder that there has been no bug activity for over a year. Is this still an issue in current (1.7.51 or newer) wine?
https://bugs.winehq.org/show_bug.cgi?id=36091
temp82@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |temp82@luukku.com
--- Comment #2 from temp82@luukku.com --- I think the link has changed it's content. There has been a lot recent shader work but I quess this bug is still valid. Esme can you retest this?
https://bugs.winehq.org/show_bug.cgi?id=36091
--- Comment #3 from Esme Povirk madewokherd@gmail.com --- Retested with Wine 8.5, it now fails even sooner:
FATAL ERROR in Fragment Shader compilation ShaderName: shader0
memory:58:1: E5000: syntax error, unexpected KW_DISCARD
https://bugs.winehq.org/show_bug.cgi?id=36091
--- Comment #4 from Esme Povirk madewokherd@gmail.com --- The error now pops up immediately on start.
It seems like vkd3d doesn't support the discard statement. Should the product be changed to vkd3d?
https://bugs.winehq.org/show_bug.cgi?id=36091
Esme Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://www.desura.com/games |https://www.indiedb.com/gam |/project-apt |es/project-apt
https://bugs.winehq.org/show_bug.cgi?id=36091
Zeb Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|d3d-util |hlsl CC| |z.figura12@gmail.com Keywords| |download Summary|Project APT fails to |Project APT fails to |compile vertex shader |compile vertex shader | |(needs 'discard') Product|Wine |vkd3d Version|1.7.17 |1.7
https://bugs.winehq.org/show_bug.cgi?id=36091
--- Comment #5 from Nikolay Sivov bunglehead@gmail.com --- I didn't immediately see how to download this game from linked page. Could you try this https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/136?
https://bugs.winehq.org/show_bug.cgi?id=36091
--- Comment #6 from Esme Povirk madewokherd@gmail.com --- AFAICT the game is no longer available for download and purchase, since Desura is no longer running. I will retest later.
https://bugs.winehq.org/show_bug.cgi?id=36091
Ethan Lee flibitijibibo@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |flibitijibibo@gmail.com
--- Comment #7 from Ethan Lee flibitijibibo@gmail.com --- The shader provided in https://bugs.winehq.org/show_bug.cgi?id=54777 can be used to test this as it includes the discard keyword. When any() is implemented/worked around, it should hit the 'unexpected KW_DISCARD' message.
https://bugs.winehq.org/show_bug.cgi?id=36091
--- Comment #8 from Esme Povirk madewokherd@gmail.com --- (In reply to Nikolay Sivov from comment #5)
I didn't immediately see how to download this game from linked page. Could you try this https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/136?
Fails at the same time, but a new message: FATAL ERROR in Fragment Shader compilation ShaderName: shader0
memory:116:51: E5005: Function "tan" is not defined.
https://bugs.winehq.org/show_bug.cgi?id=36091
--- Comment #9 from Nikolay Sivov bunglehead@gmail.com --- This is implemented now with https://source.winehq.org/git/vkd3d.git/commit/59c63ec5841dc01fac15dd2a0772b.... Function 'tan' is covered by bug 54377.
https://bugs.winehq.org/show_bug.cgi?id=36091
--- Comment #10 from Esme Povirk madewokherd@gmail.com --- Progress! It renders the title screen again.
Clicking "new game" hits another unimplemented feature: memory:195:16: E5017: Aborting due to not yet implemented feature: SM1 "cast" expression. memory:195:16: E5017: Aborting due to not yet implemented feature: SM1 "cast" expression.
https://bugs.winehq.org/show_bug.cgi?id=36091
--- Comment #11 from temp82@luukku.com --- (In reply to Esme Povirk from comment #10)
Progress! It renders the title screen again.
Clicking "new game" hits another unimplemented feature: memory:195:16: E5017: Aborting due to not yet implemented feature: SM1 "cast" expression. memory:195:16: E5017: Aborting due to not yet implemented feature: SM1 "cast" expression.
I think this bug report should be marked as fixed. Other issues should have their own bug reports so that bugs don't get recycled on different issues.
https://bugs.winehq.org/show_bug.cgi?id=36091
--- Comment #12 from Esme Povirk madewokherd@gmail.com --- Arguably this is the original issue which is that it crashes clicking "new game", and it regressed for a bit.
https://bugs.winehq.org/show_bug.cgi?id=36091
--- Comment #13 from Zeb Figura z.figura12@gmail.com --- Creating one bug report per issue is useful is useful to avoid issues which are too broadly scoped and never get closed, and also to avoid confusing multiple unrelated problems. I don't think either is a problem here (it's just a handful of missing HLSL features), and while I'm not going to discourage people from creating a series of bug reports, I also don't find it useful to zealously demand people adhere to that rule.
https://bugs.winehq.org/show_bug.cgi?id=36091
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Project APT fails to |Multiple games need |compile vertex shader |'discard'/'KW_DISCARD' |(needs 'discard') |support (Zoria and the | |Cursed Land demo, Project | |APT)
https://bugs.winehq.org/show_bug.cgi?id=36091
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |o.dierick@piezo-forte.be
--- Comment #14 from Gijs Vermeulen gijsvrm@gmail.com --- *** Bug 55077 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=36091
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |59c63ec5841dc01fac15dd2a077 | |2b61f55b77a03 Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #15 from Gijs Vermeulen gijsvrm@gmail.com --- Marking this one fixed, as noted by Esme in Comment #10.
memory:195:16: E5017: Aborting due to not yet implemented feature: SM1 "cast" expression.
This is probably the same as bug 54372. (at least the message is the same)
https://bugs.winehq.org/show_bug.cgi?id=36091
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #16 from Nikolay Sivov bunglehead@gmail.com --- Closing bugs fixed in 1.9.