panfrost midgard - major issues with MelonDS emulator - not able to trace properly too
@alyssa @bbrezillon @icecream95
folks, I had a severe issue with melonDS emulator, with soft render it works fine of course, but once I enable opengl the feast of glitches starts and my systems almost hang. tested on 2 different rk3399 platforms with completely different settings (DE, display protocol,etc)
the emulator is quite easy to compile, I tested main https://github.com/Arisotura/melonDS with mario kart DS. its the only decently performing DS emulator for arm linux so would be quite needed to have it not broken let say. I can identify that this behavior was quite similar like to monolith linux x86 game with box86. maybe @icecream95 can confirm that. #5680 (closed)
I wasnt able to get apitrace to work properly, it wasnt able to replay it nicely due some issue with the buffer (6894: warning: failed to map buffer).. So, I used SSR to record it at least, with mario kart for the DS as an example.
simplescreenrecorder-2022-05-19_18.36.00.mkv
pinebook-pro:~:% inxi -GSC -xx
System:
Host: pinebook-pro Kernel: 5.10.60-rockchip64 aarch64 bits: 64
compiler: N/A Desktop: Xfce 4.14.2 tk: Gtk 3.24.13 wm: xfwm4 dm: LightDM
Distro: Ubuntu 20.04.3 LTS (Focal Fossa)
CPU:
Topology: 6-Core (2-Die) model: N/A variant-1: cortex-a72
variant-2: cortex-a53 bits: 64 type: MCP MCM arch: ARMv8 rev: 4
features: Use -f option to see features bogomips: 0
Speed: 1200 MHz min/max: 408/1512:2016 MHz Core speeds (MHz): 1: 600
2: 600 3: 600 4: 600 5: 1200 6: 1200
Graphics:
Device-1: display-subsystem driver: rockchip_drm v: N/A bus ID: N/A
chip ID: rockchip:display-subsystem
Device-2: rk3399-mali driver: panfrost v: kernel bus ID: N/A
chip ID: rockchip:ff9a0000
Display: x11 server: X.org 1.20.11 driver: modesetting unloaded: fbdev
resolution: <xdpyinfo missing>
OpenGL: renderer: Mali-T860 (Panfrost)
v: 3.3 Mesa 22.2.0-devel (git-cfec9a5 2022-05-06 focal-oibaf-ppa)
direct render: Yes