mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-06 04:55:44 +00:00
fix(session): only Steam sessions receive the chosen Steam GPU drawing flag on the system-driver path
This commit is contained in:
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) }
|
||||
|
||||
Reference in new issue
Block a user