fix(session): the Steam interface GPU drawing choice reaches the system-driver path

This commit is contained in:
Kurt Himebauch committed 2026-11-16 11:32:34 +00:00
1 parent f65e7a3d43
commit 46518cf21d
5 files changed
+33 -3

No files matched your search

@@ -949,6 +949,9 @@ object SessionPrefs {
return prefs(context).getBoolean("steamGpuCompositing", true)
}
fun steamGpuCompositingChosen(context: Context): Boolean =
prefs(context).contains("steamGpuCompositing") && steamGpuCompositing(context)
fun steamGpuCompositingAllowed(): Boolean =
!com.droiddeck.launcher.core.DeviceSupport.adreno() && !com.droiddeck.launcher.core.DeviceSupport.mali()
@@ -973,6 +973,7 @@ class SessionService : Service() {
val bridge = com.droiddeck.launcher.core.DeviceSupport.vkBridge(this)
if (!bridge && !venus && SystemVulkanDriver.usesDefault(linuxDriverId)) {
SystemVulkanDriver.addEnvironment(this, guest)
if (SessionPrefs.steamGpuCompositingChosen(this)) guest.add("BL_STEAM_GPU_COMPOSITING=1")
}
(if (bridge || venus) null else LinuxVulkanDriver.resolveIcdPath(this, linuxDriverId))
?.let { guest.add(LinuxVulkanDriver.ENV + "=" + it) }