How to run RetroArch cores with DRI_PRIME=1?
-
Executing: /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-mgba/mgba_libretro.so --config /opt/retropie/configs/gba/retroarch.cfg "/media/retrolite/CM5Handheld/roms/gba/Pokemon - FireRed Version (USA, Europe).gba" --appendconfig /dev/shm/retroarch.cfg Couldn't open plugin directory: No such file or directory No plugins found, falling back on no decorations libEGL warning: MESA-LOADER: failed to open rknpu: /usr/lib/dri/rknpu_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
For some reason RetroArch is launching with swrast as it cant find the libEGL plugin. I've managed to fix this with EmulationStation by adding a line "export DRI_PRIME=1" to /etc/profile before launching. However, I find that when the cores are launched, RetroArch still seems to use the swrast.
Is there any way to point it towards the GPU instead of the NPU here via a launch command? (i.e via the DRI_PRIME=1) fix or similar to export this before retroarch cores are launched in ES? Just playing around with things atm on the RK3588.
-
If DRI_PRIME is available to EmulationStation, then it's also passed on to RetroArch when it's launched and you don't need any additional configuration(s).
-
@mitu said in How to run RetroArch cores with DRI_PRIME=1?:
If DRI_PRIME is available to EmulationStation, then it's also passed on to RetroArch when it's launched and you don't need any additional configuration(s).
Are you sure about that? I believe we now have "/dev/dri/card0" for NPU and "/dev/dri/card1" for GPU, and have to specify that explicitly… not sure if that’s getting mixed up somehow when launching retroarch.
-
@StonedEdge said in How to run RetroArch cores with DRI_PRIME=1?:
Are you sure about that? I believe we now have "/dev/dri/card0" for NPU and "/dev/dri/card1" for GPU, and have to specify that explicitly… not sure if that’s getting mixed up somehow when launching retroarch.
Yes. I think you're confusing some things here and your MESA/DRM libraries are most likely the issue here - not RetroArch.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.