fix(session): only Steam sessions receive the chosen Steam GPU drawing flag on the system-driver path

This commit is contained in:
Kurt Himebauch committed 2026-11-16 11:41:42 +00:00
1 parent 46518cf21d
commit babcc271b7
3 files changed
+11 -6

No files matched your search

@@ -949,8 +949,8 @@ object SessionPrefs {
return prefs(context).getBoolean("steamGpuCompositing", true)
}
fun steamGpuCompositingChosen(context: Context): Boolean =
prefs(context).contains("steamGpuCompositing") && steamGpuCompositing(context)
fun steamGpuCompositingChosen(context: Context, steamSession: Boolean): Boolean =
steamSession && prefs(context).contains("steamGpuCompositing") && steamGpuCompositing(context)
fun steamGpuCompositingAllowed(): Boolean =
!com.droiddeck.launcher.core.DeviceSupport.adreno() && !com.droiddeck.launcher.core.DeviceSupport.mali()
@@ -973,7 +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 (SessionPrefs.steamGpuCompositingChosen(this, steamHere)) guest.add("BL_STEAM_GPU_COMPOSITING=1")
}
(if (bridge || venus) null else LinuxVulkanDriver.resolveIcdPath(this, linuxDriverId))
?.let { guest.add(LinuxVulkanDriver.ENV + "=" + it) }