RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Add Vulkan Support to RetroPie for Pi 4?

    Scheduled Pinned Locked Moved Ideas and Development
    vulkanpi 4retropie
    97 Posts 13 Posters 22.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.
    • 2Play2
      2Play @bluestang
      last edited by

      @bluestang Hi my friend.
      I ve been working the last month on Vulkan on Pi4
      I think we should have a recap basis latest .
      I ll share my latest too

      Your friend,
      2Play!

      S 1 Reply Last reply Reply Quote 2
      • S
        SierraFOOL @2Play
        last edited by

        Hallo, can i activate Vulkan for all cores in Retoarch/Retropie? Or should i activate it per core? In which Config File can i Test ist?

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

          @sierrafool There's no switch to activate Vulkan in RetroPie as it is. Vulkan is not included in the RetroArch build and support for it is not present in Raspberry Pi OS. You'll need to manually compile MESA with Vulkan support and the same for RetroArch.

          S 1 Reply Last reply Reply Quote 0
          • S
            SierraFOOL @mitu
            last edited by

            @mitu thanks, i Inderstand. Inhaber Compiler Mesa with Vulkan via pikiss. How can i Compile Retroarch with Vulkan Support? Can i See, how the Retropie Script Compile this and add a Vulkan Parameter?

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

              @sierrafool You can see the RetroPie install script for RetroArch here, this includes the compilation switches used by RetroPie.

              1 Reply Last reply Reply Quote 0
              • sergioadS
                sergioad
                last edited by

                How the development is going? I am hyped by the idea of Redream + Vulkan

                dankcushionsD 1 Reply Last reply Reply Quote 1
                • dankcushionsD
                  dankcushions Global Moderator @sergioad
                  last edited by dankcushions

                  @sergioad as mitu said

                  Vulkan is not included in the RetroArch build and support for it is not present in Raspberry Pi OS.

                  we need to wait for the next version of raspberry pi OS, based on debian bullseye, which should include mesa with vulkan support. once that is there, retropie could update the script modules to include support for retroarch/appropriate emulators.

                  I am hyped by the idea of Redream + Vulkan

                  does redream support vulkan? i don't believe it does.

                  sergioadS 1 Reply Last reply Reply Quote 2
                  • sergioadS
                    sergioad @dankcushions
                    last edited by

                    @dankcushions thanks for the reply

                    1 Reply Last reply Reply Quote 0
                    • sergioadS
                      sergioad
                      last edited by

                      @dankcushions AFAIK it does

                      dankcushionsD 1 Reply Last reply Reply Quote 0
                      • dankcushionsD
                        dankcushions Global Moderator @sergioad
                        last edited by

                        @sergioad it does not. confirmed by the dev on their discord many times, and the official website: https://redream.io/help

                        flycast supports vulkan, although apparently pi4 has issues: https://github.com/libretro/flycast/issues/983

                        sergioadS 1 Reply Last reply Reply Quote 1
                        • sergioadS
                          sergioad @dankcushions
                          last edited by

                          @dankcushions ok, thanks

                          1 Reply Last reply Reply Quote 0
                          • B
                            bluestang
                            last edited by

                            RPiOS "Bullseye" now has the 20.3.5 version of MESA and the Broadcom Vulkan driver is part of the mesa-vulkan-drivers pkg if installed through apt...

                            In upstream MESA, the rpi4 Vulkan driver is now 1.1 conformant but still lacks a few extensions and driver code improvements that 3D emulators would benefit from.

                            Nonetheless, it is an option available to the user to install through apt. Perhaps it might be time to make it an option in RetroPie?

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

                              @bluestang said in Add Vulkan Support to RetroPie for Pi 4?:

                              Perhaps it might be time to make it an option in RetroPie?

                              Does it work without xorg ? From my limited testing, it's not working with RetroArch in the current configuration (KMSDSM without xorg).

                              B 1 Reply Last reply Reply Quote 0
                              • B
                                bluestang @mitu
                                last edited by

                                @mitu said in Add Vulkan Support to RetroPie for Pi 4?:

                                @bluestang said in Add Vulkan Support to RetroPie for Pi 4?:

                                Perhaps it might be time to make it an option in RetroPie?

                                Does it work without xorg ? From my limited testing, it's not working with RetroArch in the current configuration (KMSDSM without xorg).

                                It should work in the KMS API, the extension VK_KHR_display allows it to do so.

                                What is your current configuration?

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

                                  @bluestang Just a default RPI OS 11 install, with mesa-drivers-vulkan installed.

                                  B 1 Reply Last reply Reply Quote 0
                                  • B
                                    bluestang @mitu
                                    last edited by

                                    @mitu said in Add Vulkan Support to RetroPie for Pi 4?:

                                    @bluestang Just a default RPI OS 11 install, with mesa-drivers-vulkan installed.

                                    Are you able to get vkcube running in KMS?

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

                                      @bluestang No, it's not running. RetroArch seems to work from the desktop, but not without.

                                      B 1 Reply Last reply Reply Quote 0
                                      • B
                                        bluestang @mitu
                                        last edited by

                                        @mitu said in Add Vulkan Support to RetroPie for Pi 4?:

                                        @bluestang No, it's not running. RetroArch seems to work from the desktop, but not without.

                                        Are you able to get RetroArch working in KMS just using GLES? I just made another fresh image (64-bit) and I can see your issues, I'm trying to pin down what the problem is because compiling MESA on my own I never had this issue before...

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

                                          RetroArch works fine with the GL driver (using GLES3) and I know that Vulkan also works with KMS - using a 21.x version of Mesa and the included v3v Vulkan driver.
                                          What I'm saying is that it doesn't appear to work (on KMS) with the Mesa out-of-the-box version included in the new RPI OS 'bullseye' release (20.3.5) .

                                          B 1 Reply Last reply Reply Quote 1
                                          • B
                                            bluestang @mitu
                                            last edited by

                                            @mitu said in Add Vulkan Support to RetroPie for Pi 4?:

                                            RetroArch works fine with the GL driver (using GLES3) and I know that Vulkan also works with KMS - using a 21.x version of Mesa and the included v3v Vulkan driver.
                                            What I'm saying is that it doesn't appear to work (on KMS) with the Mesa out-of-the-box version included in the new RPI OS 'bullseye' release (20.3.5) .

                                            Thanks for the clarification and you are right, Vulkan does not work in KMS with the included MESA (20.3.5) in Bullseye.

                                            It was backported into MESA 21.0.0. How annoying...

                                            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.