https://bugs.winehq.org/show_bug.cgi?id=42593
Bug ID: 42593 Summary: CEMU crashes on radeonsi mesa Product: Wine Version: 2.2 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: opengl Assignee: wine-bugs@winehq.org Reporter: giovanni.nicola@ticino.com Distribution: ---
Created attachment 57529 --> https://bugs.winehq.org/attachment.cgi?id=57529 log of the crash
When launching cemu 1.7.2 the screen becomes black and after a while it crashes attached log (happens with wine and wine staging)
https://bugs.winehq.org/show_bug.cgi?id=42593
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
--- Comment #1 from winetest@luukku.com --- Assuming this is the application.
To me it looks that you are trying to run a game and not just the application.
H:\LAURA_LINIX_7\cemu\cemu_1.7.2\cemu.exe -f -g "/run/media/laura/gamma/WIIURoms/Super Mario Maker.wux"]
I have no issues running just the application.
wine-staging 2.4.
https://bugs.winehq.org/show_bug.cgi?id=42593
mikael.public@gmail.com mikael.public@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mikael.public@gmail.com
--- Comment #2 from mikael.public@gmail.com mikael.public@gmail.com --- Hi,
A) Set at least win7 using winecfg
B) Ensure that your ~/.drirc (that you can create using driconf) contains at least (or make a specific profile for CEMU):
<option name="force_glsl_extensions_warn" value="true" /> <option name="allow_higher_compat_version" value="true" />
- You may want to add, because sometimes it could be perf wise
<option name="mesa_glthread" value="true" />
C) You need to force a OpenGL compatible context 4.5 like this :
MESA_GL_VERSION_OVERRIDE=4.5COMPAT wine64 Cemu.exe
D) It's up to you to play with various GALLIUM and MESA environment variables (to tune for instance shader cache)
E) Keep in mind, that sometimes the performence and compatibility maybe different from Windows users. (In my experience, when it works it's way better)
- Note - It's Unix, you can do many things like adding a ZRAM or a RAMDISK, use HUGETLBFS, schedutil, it's all up to you.
For all this to happen, you may want to use latest version of mesa (git), libdrm (2.78) and wine (currently 2.5)
https://bugs.winehq.org/show_bug.cgi?id=42593
--- Comment #3 from mikael.public@gmail.com mikael.public@gmail.com --- Created attachment 58078 --> https://bugs.winehq.org/attachment.cgi?id=58078 Patch on MESA
ISSUE is related to strlen() in winex11.drv/opengl.c, maybe it should be moved there (issue is not a *REAL* issue though)
In fact wine tries to replicate windows behaviour: the crash is related to two things : At context creation Cemu don't ask for an CORE OPEGL PROFILE, it ends up with a compatibility one GLversion 3.0(that is the maximum in that case).
If you force a MESA_GL_VERSION_OVERRIDE=4.5, wine then in winex11.drv does a glGetString(GL_EXTENSIONS) that is not valid in CORE PROFILE.
So you could use MESA_GL_VERSION_OVERRIDE=4.5COMPAT, and it'll work, but in that case the function resolution would not select pointers to glFunctions efficiently, and shaders will fail to compile.
The idea of the patch is to address this and two others issues but it's against mesa-git and please don't asks to upstream support, there's no way it would make it there :). Be sure to disable glthread in driconf, because I failed to fix something. try this way: MESA_GL_VERSION_OVERRIDE=4.5 wine Cemu.exe
https://bugs.winehq.org/show_bug.cgi?id=42593
--- Comment #4 from winetest@luukku.com --- If you think it's upstream bug. There is no way it's going to be fixed here.
https://bugs.winehq.org/show_bug.cgi?id=42593
aranibarerick@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |aranibarerick@gmail.com