Skip to content

Does ppsspp support gbm backend +vulkan? #16899

@zack-huangzihan

Description

@zack-huangzihan

Game or games this happens in

games

What area of the game / PPSSPP

In the code: https://github.com/hrydgard/ppsspp/blob/ceb4186d0ffc26091bb3fc25a1e71bce15b8902d/SDL/SDLVulkanGraphicsContext.cpp

We can see that there is some support for the back end: WINDOWSYSTEM_WAYLAND WINDOWSYSTEM_XLIB WINDOWSYSTEM_XCB WINDOWSYSTEM_METAL_EXT and so on, Can gbm+vulkan render?

Here's how I changed it:

diff --git a/SDL/SDLVulkanGraphicsContext.cpp b/SDL/SDLVulkanGraphicsContext.cpp
index 433f35b03..e08c30578 100644
--- a/SDL/SDLVulkanGraphicsContext.cpp
+++ b/SDL/SDLVulkanGraphicsContext.cpp
@@ -105,8 +105,9 @@ bool SDLVulkanGraphicsContext::Init(SDL_Window *&window, int x, int y, int mode,      
 #endif
 #endif
        default:
-               fprintf(stderr, "Vulkan subsystem %d not supported\n", sys_info.subsystem);
-               exit(1);
+               vulkan_->InitSurface(WINDOWSYSTEM_DISPLAY, nullptr, nullptr);
+               //fprintf(stderr, "Vulkan subsystem %d not supported\n", sys_info.subsystem);
+               //exit(1);
                break;
        }

But it can't work. Do you have any advice for me?

What should happen

On a lot of embedded linux platforms, probably most of the way to use kms, hopefully can support

Logs

No response

Platform

Linux / BSD

Mobile phone model or graphics card

arm mali

PPSSPP version affected

latest

Last working version

No response

Graphics backend (3D API)

Vulkan

Checklist

  • Test in the latest git build in case it's already fixed.
  • Search for other reports of the same issue.
  • Try resetting settings or older versions and include if the issue is related.
  • Try without any cheats and without loading any save states.
  • Include logs or screenshots of issue.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions