Skip to content

Commit 192144f

Browse files
committed
systems: add Vulkan flags for Pi4/Pi5
Added Vulkan as supported renderer for Pi4/Pi5 when running on RaspiOS 12 Bookworm. Technically the support was added in Bullseye for Pi4, but it was only available under X11. Notes: - most emulators include the Vulkan headers, so there's no need to add `libvulkan-dev` as a dependency. - not all emulators will run with Vulkan from KMS/DRM - `ppsspp`/`dolphin` can use it under x11/wayland, while `retroarch` runs with the`vulkan` video driver on KMS/DRM. - switching RetroArch to use the `vulkan` renderer needs to include the installation/configuration of SLANG shaders, which is not handled at the moment.
1 parent 10a90d3 commit 192144f

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

scriptmodules/emulators/dolphin.sh

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ function depends_dolphin() {
4848
else
4949
depends+=(qtbase5-private-dev)
5050
fi
51+
isPlatform "vulkan" && depends+=(mesa-vulkan-drivers)
5152
getDepends "${depends[@]}"
5253
}
5354

scriptmodules/emulators/ppsspp.sh

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ function depends_ppsspp() {
2222
isPlatform "videocore" && depends+=(libraspberrypi-dev)
2323
isPlatform "mesa" && depends+=(libgles2-mesa-dev)
2424
isPlatform "vero4k" && depends+=(vero3-userland-dev-osmc)
25+
isPlatform "vulkan" && depends+=(mesa-vulkan-drivers)
2526
getDepends "${depends[@]}"
2627
}
2728

scriptmodules/supplementary/sdl2.sh

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ function _list_depends_sdl2() {
4949
isPlatform "gl" || isPlatform "rpi" && depends+=(libgl1-mesa-dev libglu1-mesa-dev)
5050
isPlatform "kms" || isPlatform "rpi" && depends+=(libdrm-dev libgbm-dev)
5151
isPlatform "x11" && depends+=(libpulse-dev libwayland-dev)
52+
isPlatform "vulkan" && depends+=(libvulkan-dev)
5253

5354
echo "${depends[@]}"
5455
}

scriptmodules/system.sh

+4
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,10 @@ function get_rpi_video() {
364364
fi
365365
fi
366366
[[ "$__has_dispmanx" -eq 1 ]] && __platform_flags+=(dispmanx)
367+
# Pi4/5 have Vulkan working under KMS on Debian 12 (bookworm) or newer
368+
if (isPlatform "rpi4" || isPlatform "rpi5") && [[ "$__os_debian_ver" -ge 12 ]]; then
369+
__platform_flags+=(vulkan)
370+
fi
367371
else
368372
__platform_flags+=(videocore dispmanx)
369373
fi

0 commit comments

Comments
 (0)