Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

systems: add Vulkan flags for Pi4/Pi5 #3785

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions scriptmodules/emulators/dolphin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ function depends_dolphin() {
# if using the latest version, add SDL2 as dependency, since it's mandatory
[[ "$(_get_commit_dolphin)" == "" ]] && depends+=(libsdl2-dev)

# install Vulkan drivers when needed
isPlatform "vulkan" && depends+=(mesa-vulkan-drivers)
getDepends "${depends[@]}"
}

Expand Down
1 change: 1 addition & 0 deletions scriptmodules/emulators/ppsspp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ function depends_ppsspp() {
isPlatform "videocore" && depends+=(libraspberrypi-dev)
isPlatform "mesa" && depends+=(libgles2-mesa-dev)
isPlatform "vero4k" && depends+=(vero3-userland-dev-osmc)
isPlatform "vulkan" && depends+=(mesa-vulkan-drivers)
getDepends "${depends[@]}"
}

Expand Down
1 change: 1 addition & 0 deletions scriptmodules/supplementary/sdl2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ function _list_depends_sdl2() {
isPlatform "gl" || isPlatform "rpi" && depends+=(libgl1-mesa-dev libglu1-mesa-dev)
isPlatform "kms" || isPlatform "rpi" && depends+=(libdrm-dev libgbm-dev)
isPlatform "x11" && depends+=(libpulse-dev libwayland-dev)
isPlatform "vulkan" && depends+=(libvulkan-dev)

echo "${depends[@]}"
}
Expand Down
4 changes: 4 additions & 0 deletions scriptmodules/system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,10 @@ function get_rpi_video() {
fi
fi
[[ "$__has_dispmanx" -eq 1 ]] && __platform_flags+=(dispmanx)
# Pi4/5 have Vulkan working under KMS on Debian 12 (bookworm) or newer
if (isPlatform "rpi4" || isPlatform "rpi5") && [[ "$__os_debian_ver" -ge 12 ]]; then
__platform_flags+=(vulkan)
fi
else
__platform_flags+=(videocore)
if ! isPlatform "aarm64"; then
Expand Down