https://bugs.winehq.org/show_bug.cgi?id=55829
Bug ID: 55829 Summary: Legend of Grimrock series has rendering glitch Product: vkd3d Version: 1.9 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: hlsl Assignee: wine-bugs@winehq.org Reporter: andrey.goosev@gmail.com Distribution: ---
Created attachment 75325 --> https://bugs.winehq.org/attachment.cgi?id=75325 example
Continuation of bug 55182.
Commit 167ad1ee7bbdaa1ec329f4b6a27b2e9b9389c0e2 makes main menu be visible but added rendering glitch.
https://bugs.winehq.org/show_bug.cgi?id=55829
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- Is this fixable with native d3dcompiler, when used with the same build? I don't know if they cache compiled shaders, so it might necessitate testing in a new prefix.
https://bugs.winehq.org/show_bug.cgi?id=55829
--- Comment #2 from Nikolay Sivov bunglehead@gmail.com --- I can answer that myself now, it is in fact fixable with a native compiler for both Legend of Grimrock and Legenf of Grimrock II. Corruption on starting screen I see is different though, it looks like constant pink noise covering the whole screen. Strangely that applies only to the start screen, not to the quit menu for example.
https://bugs.winehq.org/show_bug.cgi?id=55829
--- Comment #3 from Gijs Vermeulen gijsvrm@gmail.com --- Is this still present with wine-git & vkd3d-git? I don't see this with Legend of Grimrock II. I am running a GTX 1080 with blob driver 535.113.01.
https://bugs.winehq.org/show_bug.cgi?id=55829
--- Comment #4 from Andrey Gusev andrey.goosev@gmail.com --- Then it's for AMD.
https://bugs.winehq.org/show_bug.cgi?id=55829
--- Comment #5 from Nikolay Sivov bunglehead@gmail.com --- I only tried on Intel myself.
https://bugs.winehq.org/show_bug.cgi?id=55829
--- Comment #6 from Nikolay Sivov bunglehead@gmail.com --- Created attachment 76134 --> https://bugs.winehq.org/attachment.cgi?id=76134 shader
I found a shader responsible for this pixel noise. This appears to be a miscompilation wrt semantic handling. With current vkd3d I get this:
ps_3_0 dcl_color v0 dcl_texcoord0 v0 mov r0.xyzw, v0.xyzw mov oC0.xyzw, r0.xyzw
while correct output is
ps_3_0 dcl_color v0 mov oC0, v0
https://bugs.winehq.org/show_bug.cgi?id=55829
--- Comment #7 from Nikolay Sivov bunglehead@gmail.com --- Originally reported red segment seems to be about matrix majority handling - game is passing D3DCOMPILE_PACK_MATRIX_ROW_MAJOR flag, that was ignored in vkd3d until recently.
https://bugs.winehq.org/show_bug.cgi?id=55829
--- Comment #8 from Nikolay Sivov bunglehead@gmail.com --- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/699
https://bugs.winehq.org/show_bug.cgi?id=55829
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Fixed by SHA1| |25d353db91b99b8fc93a02a3db2 | |9ec3002825189 Resolution|--- |FIXED
--- Comment #9 from Nikolay Sivov bunglehead@gmail.com --- This is working fine for me now, 25d353db91b99b8fc93a02a3db29ec3002825189.
https://bugs.winehq.org/show_bug.cgi?id=55829
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #10 from Nikolay Sivov bunglehead@gmail.com --- Closing bugs fixed in 1.13.