Open SupervisedThinking opened 3 years ago
Core options?
Mupen64Plus-Next.opt
mupen64plus-169screensize = "640x360"
mupen64plus-43screensize = "640x480"
mupen64plus-alt-map = "False"
mupen64plus-aspect = "4:3"
mupen64plus-astick-deadzone = "15"
mupen64plus-astick-sensitivity = "100"
mupen64plus-BackgroundMode = "OnePiece"
mupen64plus-BilinearMode = "standard"
mupen64plus-CorrectTexrectCoords = "Off"
mupen64plus-CountPerOp = "0"
mupen64plus-cpucore = "dynamic_recompiler"
mupen64plus-d-cbutton = "C3"
mupen64plus-DitheringPattern = "False"
mupen64plus-DitheringQuantization = "False"
mupen64plus-EnableCopyAuxToRDRAM = "False"
mupen64plus-EnableCopyColorToRDRAM = "Sync"
mupen64plus-EnableCopyDepthToRDRAM = "Software"
mupen64plus-EnableEnhancedHighResStorage = "False"
mupen64plus-EnableEnhancedTextureStorage = "False"
mupen64plus-EnableFBEmulation = "True"
mupen64plus-EnableFragmentDepthWrite = "False"
mupen64plus-EnableHiResAltCRC = "False"
mupen64plus-EnableHWLighting = "False"
mupen64plus-EnableLegacyBlending = "True"
mupen64plus-EnableLODEmulation = "True"
mupen64plus-EnableNativeResFactor = "0"
mupen64plus-EnableNativeResTexrects = "Disabled"
mupen64plus-EnableOverscan = "Enabled"
mupen64plus-EnableTextureCache = "True"
mupen64plus-ForceDisableExtraMem = "False"
mupen64plus-FrameDuping = "False"
mupen64plus-Framerate = "Original"
mupen64plus-FXAA = "0"
mupen64plus-GLideN64IniBehaviour = "late"
mupen64plus-HybridFilter = "True"
mupen64plus-IgnoreTLBExceptions = "False"
mupen64plus-l-cbutton = "C2"
mupen64plus-MaxTxCacheSize = "8000"
mupen64plus-MultiSampling = "0"
mupen64plus-OverscanBottom = "0"
mupen64plus-OverscanLeft = "0"
mupen64plus-OverscanRight = "0"
mupen64plus-OverscanTop = "0"
mupen64plus-pak1 = "memory"
mupen64plus-pak2 = "none"
mupen64plus-pak3 = "none"
mupen64plus-pak4 = "none"
mupen64plus-r-cbutton = "C1"
mupen64plus-rdp-plugin = "gliden64"
mupen64plus-RDRAMImageDitheringMode = "False"
mupen64plus-rsp-plugin = "hle"
mupen64plus-ThreadedRenderer = "False"
mupen64plus-txCacheCompression = "True"
mupen64plus-txEnhancementMode = "None"
mupen64plus-txFilterIgnoreBG = "True"
mupen64plus-txFilterMode = "None"
mupen64plus-txHiresEnable = "False"
mupen64plus-txHiresFullAlphaChannel = "False"
mupen64plus-u-cbutton = "C4"
mupen64plus-virefresh = "Auto"
Try each value of MaxTxCacheSize, close + open the core between tests
I've tried both 1500/4000 as value for MaxTxCacheSize
but still the black squares. A A311D (S922X) with Mali G52 & panfrost driver does not show those squares btw. so it might be a Mesa bug?
Certainly sounds like driver shenanigans. I know MESA on Switch is fine, so either specific to the device or MESA version Probably a upstream issue
I've opened an issue here about that https://gitlab.freedesktop.org/mesa/mesa/-/issues/4468
Can you check again on last release? should be on the bot in ~3h worst case
I've tried https://github.com/libretro/mupen64plus-libretro-nx/commit/ecfc77e9a49617d25b683aec7a8217bd044cfc6a + Mesa 21.2.0-RC3 + Linux 5.10.47 but still the same black boxes on my RK3399
Btw. Super Smash Bros. has the same glitches, the powerups & other sprites have black boxes around the,
Also affected on the Pinebook Pro with mesa 21.2.4.
I compiled mupen64plus with platform="rpi4" FORCE_GLES3=1
Also affected on the Pinebook Pro with mesa 21.2.4. I compiled mupen64plus with
platform="rpi4" FORCE_GLES3=1
I guess platform should be RK3399 for a Pinebook Pro? Anyway I've still the same issue with mesa 21.3-RC & latest mupen64plus-nx. The RK3288 is also affected https://gitlab.freedesktop.org/mesa/mesa/-/issues/4468#note_1107435
I guess platform should be RK3399 for a Pinebook Pro? Anyway I've still the same issue with mesa 21.3-RC & latest mupen64plus-nx. The RK3288 is also affected https://gitlab.freedesktop.org/mesa/mesa/-/issues/4468#note_1107435
You're right, I followed a different guide and didn't know mupen64plus supported that flag. Issue still present though.
This also affects way more games than just Mario Kart. Super Mario 64 and Paper Mario have gray boxes around the cursors for example.
Yes it's a bunch of games e.g. the mentioned Super Smash Bros. is also affected. Looks like all "sprites" with transparency aren't actually transparent but black.
@gonetz maybe you've got any idea what could be the underlaying problem?
The issue seems to occur only in game not using the apitrace replay.
I wonder if smth in the init process changed?
Could try yeeting https://github.com/libretro/mupen64plus-libretro-nx/blob/develop/GLideN64/src/Graphics/OpenGLContext/mupen64plus/mupen64plus_DisplayWindow.cpp#L79-L81 and check for a change in behaviour Thats there since ages tho
I've tested it yesterday with mesa 22.0-dev and the bug is still there, works still fine with panfrost & lima on G52 / Mali 450 I'll give it a try later but have to rebuild images first.
@m4xw I've tested
--- /GLideN64/src/Graphics/OpenGLContext/mupen64plus/mupen64plus_DisplayWindow.cpp
+++ /GLideN64/src/Graphics/OpenGLContext/mupen64plus/mupen64plus_DisplayWindow.cpp
@@ -76,10 +76,6 @@
_getDisplaySize();
_setBufferSize();
-#ifdef EGL
- eglInitialize(eglGetDisplay(EGL_DEFAULT_DISPLAY), nullptr, nullptr);
-#endif // EGL
-
LOG(LOG_VERBOSE, "[GlideN64]: Create setting videomode %dx%d", m_screenWidth, m_screenHeight);
return true;
}
but it doesn't changed the visual artifacts
I guess the screenshots are self explanatory.
System:
Version: https://github.com/libretro/mupen64plus-libretro-nx/commit/9ae6f16bb9c75f2d2f2fa2fc4fd001cf7dda6d95
Package: https://github.com/SupervisedThinking/LibreELEC-RR/blob/libreelec-10.0-RR/packages/supervisedthinking/emulation/libretro/mupen64plus-nx/package.mk
Screenshots:
![2](https://i.imgur.com/NQ3ZTVX.png)
Log: