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 install the Vulkan driver for Retroarch?

    Scheduled Pinned Locked Moved Help and Support
    pi4retroarchvulkan
    8 Posts 3 Posters 6.5k 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.
    • C
      coldspark29
      last edited by coldspark29

      The Vulkan beta code has been available for some time now. I was wondering if I could get this to show up in in the Retroarch video drivers. Following the guide you install the drivers in the user directory and I guess I would have to install them in root. I have tried to to put the

      export VK_ICD_FILENAMES=/home/pi/local-install/share/vulkan/icd.d/broadcom_icd.armv7l.json
      

      into the .bashrc, but I guess the Retroarch version in Retropie does not load the Vulkan driver anyway, does it? How can I get it to recognize it?

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

        @coldspark29 Vulkan support is disabled explicitly on non-X11 platforms, since it needs X.org to run.

        1 Reply Last reply Reply Quote 0
        • C
          coldspark29
          last edited by

          So this means the Vulkan driver for the Raspberry Pi 4 will never run on Retropie unless it is run in X?

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

            @coldspark29 I don't understand the question - the Vulkan driver is not enabled right now, so it won't run on a stock RetroPie installation anyway.
            If you wish to test it, you'll have to install the desktop environment (which will bring X.org as a dependency) and modify the install script to enable it in RetroArch, then you can run RetroArch from the desktop environment and enable the Vulkan video driver. Not a supported configuration, but you can certainly experiment with it if you want to.

            1 Reply Last reply Reply Quote 0
            • C
              coldspark29
              last edited by

              Yes, I figured so much. I was asking if it will ever be available for environsments that are not running X, but I guess as soon as it is ready, people will make the effort to implement it to Retroarch.

              1 Reply Last reply Reply Quote 1
              • C
                coldspark29
                last edited by coldspark29

                @mitu So I want to try this out. Can you tell me how I would need to modify the install script? Do I have to install the Vulkan beta driver in the root directory or build Retroarch with Vulkan support?

                The meson command is

                meson --prefix /home/pi/local-install --libdir lib -Dplatforms=x11,drm -Dvulkan-drivers=broadcom -Ddri-drivers= -Dgallium-drivers=v3d,kmsro,vc4 -Dbuildtype=debug _build
                

                My assumption is that I would need to change the prefix part to --prefix /. I am assuming that this could possibly break my system, because I don't know whether this is a fully functional mesa driver or just a part of it.

                B mituM 2 Replies Last reply Reply Quote 0
                • B
                  barbudreadmon @coldspark29
                  last edited by barbudreadmon

                  @coldspark29 said in How to install the Vulkan driver for Retroarch?:

                  Do I have to install the Vulkan beta driver in the root directory or build Retroarch with Vulkan support?

                  Yes, you'll need the driver and the software built with vulkan support, which includes both retroarch and its cores with vulkan support (so flycast and parallel ? ppsspp crash with vulkan, i'm pretty sure beetle-psx-hw can't run full speed on pi4 even with a 2.1Ghz overclock, and i don't remember any other core with a vulkan renderer)

                  FBNeo developer - github - forum

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

                    @coldspark29 said in How to install the Vulkan driver for Retroarch?:

                    Can you tell me how I would need to modify the install script?

                    Which install script ? If you're referring to RetroArch, then try adding --enable-vulkan instead of --disable-vulkan in the build script to see if it works.

                    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.