https://bugs.winehq.org/show_bug.cgi?id=56333
Bug ID: 56333 Summary: MotorM4X needs ternary operator support for vs_2_0 profile Product: vkd3d Version: 1.10 Hardware: x86-64 URL: http://www.gamepressure.com/download.asp?ID=21182 OS: Linux Status: NEW Keywords: download Severity: normal Priority: P2 Component: hlsl Assignee: wine-bugs@winehq.org Reporter: gijsvrm@gmail.com Distribution: ---
0024:err:d3dcompiler:D3DCompile2 <anonymous>:50:38: E5017: Aborting due to not yet implemented feature: Ternary operator is not implemented for vs_2_0 profile.
https://bugs.winehq.org/show_bug.cgi?id=56333
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- Thanks, submitted here https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/669.
https://bugs.winehq.org/show_bug.cgi?id=56333
--- Comment #2 from Gijs Vermeulen gijsvrm@gmail.com --- (In reply to Nikolay Sivov from comment #1)
Thanks, submitted here https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/669.
This one's been merged, but it seems the game now hits:
0024:err:msvcrt:_wassert (L"hlsl_types_are_equal(arg1->data_type, arg2->data_type)",L"../vkd3d-source/libs/vkd3d-shader/hlsl.c",1347) Assertion failed: hlsl_types_are_equal(arg1->data_type, arg2->data_type), file ../vkd3d-source/libs/vkd3d-shader/hlsl.c, line 1347
Which seems to be some sort of "regression" as it now doesn't give any other vkd3d output and just silently exits.
https://bugs.winehq.org/show_bug.cgi?id=56333
--- Comment #3 from Nikolay Sivov bunglehead@gmail.com --- Could you please attach shader file for this.
https://bugs.winehq.org/show_bug.cgi?id=56333
--- Comment #4 from Gijs Vermeulen gijsvrm@gmail.com --- Created attachment 76163 --> https://bugs.winehq.org/attachment.cgi?id=76163 shader
Here you go.
https://bugs.winehq.org/show_bug.cgi?id=56333
--- Comment #5 from Nikolay Sivov bunglehead@gmail.com --- Thanks, this is coming from fmod(), because of bool vs float mismatch that helpers check.
https://bugs.winehq.org/show_bug.cgi?id=56333
--- Comment #6 from Nikolay Sivov bunglehead@gmail.com --- With current master there is no assert, but it doesn't quite work yet. It's related to non-float types support in SM1-3.
There is another bunch of proposed changes https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/694 in the same area. It's also not enough to fix this one.
https://bugs.winehq.org/show_bug.cgi?id=56333
--- Comment #7 from Nikolay Sivov bunglehead@gmail.com --- (In reply to Nikolay Sivov from comment #6)
With current master there is no assert, but it doesn't quite work yet. It's related to non-float types support in SM1-3.
Correction, there is still one. I wrongly tested with ps_2_0 instead of vs_2_0. Assert itself will be fixed with https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/694. After that we'll need to get rid of those non-float type errors.
https://bugs.winehq.org/show_bug.cgi?id=56333
--- Comment #8 from Nikolay Sivov bunglehead@gmail.com --- Next issue is support for sin() and cos().
https://bugs.winehq.org/show_bug.cgi?id=56333
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #9 from Gijs Vermeulen gijsvrm@gmail.com --- (In reply to Nikolay Sivov from comment #8)
Next issue is support for sin() and cos().
That's bug 55081 & bug 55079 respectively. I'll mark this one fixed, thanks!
https://bugs.winehq.org/show_bug.cgi?id=56333
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.