RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    How to run RetroArch cores with DRI_PRIME=1?

    Scheduled Pinned Locked Moved Help and Support
    rk3588 swrast
    4 Posts 2 Posters 339 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • StonedEdgeS
      StonedEdge
      last edited by StonedEdge

      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.

      Check out my build logs below:
      Wii SPii (Wii in a GBA SP Shell)
      https://bitbuilt.net/forums/index.php?threads/the-wii-spii.3347/
      Retro Lite CM4
      https://bitbuilt.net/forums/index.php?threads/retro-lite-cm4-a-stonededge-and-dmcke5-collaboration.3934/

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by

        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).

        StonedEdgeS 1 Reply Last reply Reply Quote 0
        • StonedEdgeS
          StonedEdge @mitu
          last edited by

          @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.

          Check out my build logs below:
          Wii SPii (Wii in a GBA SP Shell)
          https://bitbuilt.net/forums/index.php?threads/the-wii-spii.3347/
          Retro Lite CM4
          https://bitbuilt.net/forums/index.php?threads/retro-lite-cm4-a-stonededge-and-dmcke5-collaboration.3934/

          mituM 1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator @StonedEdge
            last edited by

            @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.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            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.