mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-06 04:55:44 +00:00
fix(session): only Steam-mode sessions receive the chosen Steam GPU drawing flag on the system-driver path
This commit is contained in:
1 parent
e6bf86f5b2
commit
469b354640
3 files changed
+14
-9
No files matched your search
@@ -952,8 +952,8 @@ object SessionPrefs {
|
||||
fun steamGpuDrawingShown(context: Context, systemDriverPath: Boolean = systemDriverSteamPath(context)): Boolean =
|
||||
steamGpuCompositing(context) && (!systemDriverPath || prefs(context).contains("steamGpuCompositing"))
|
||||
|
||||
fun steamGpuCompositingChosen(context: Context, steamSession: Boolean): Boolean =
|
||||
steamSession && steamGpuDrawingShown(context, true)
|
||||
fun steamGpuCompositingChosen(context: Context, mode: String): Boolean =
|
||||
mode == SessionService.MODE_STEAM && steamGpuDrawingShown(context, true)
|
||||
|
||||
fun systemDriverSteamPath(context: Context): Boolean =
|
||||
!com.droiddeck.launcher.core.DeviceSupport.vkBridge(context) && !VenusComponent.wanted(context) &&
|
||||
|
||||
@@ -973,7 +973,7 @@ class SessionService : Service() {
|
||||
val bridge = com.droiddeck.launcher.core.DeviceSupport.vkBridge(this)
|
||||
if (SessionPrefs.systemDriverSteamPath(this)) {
|
||||
SystemVulkanDriver.addEnvironment(this, guest)
|
||||
if (SessionPrefs.steamGpuCompositingChosen(this, steamHere)) guest.add("BL_STEAM_GPU_COMPOSITING=1")
|
||||
if (SessionPrefs.steamGpuCompositingChosen(this, SessionState.mode)) 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