fix(graphics): let Auto-installed display drivers fall back to the system driver (#2977)

This commit is contained in:
The412Banner authored and GitHub committed 2026-11-24 17:30:36 -05:00
1 parent 4405e2a389
commit f1f98c3bab
4 files changed
+60 -3

No files matched your search

@@ -308,8 +308,7 @@ public final class TurnipDriver {
}
}
if (chosen != null && !chosen.isEmpty()) {
if (SessionPrefs.GPU_DRIVERS_AUTO.equals(SessionPrefs.INSTANCE.gpuDriverMode(context))
&& SessionPrefs.INSTANCE.gpuAutoInstalled(context).contains(chosen)
if (SessionPrefs.INSTANCE.displayDriverFromAuto(context)
&& gpuDetector.get().getFamily() == GpuInfo.Family.A7XX_LOW) {
Log.i(TAG, "Auto-selected display driver does not cover Adreno 710/720/722; leaving the display driver to the system");
return null;
@@ -814,6 +814,11 @@ object SessionPrefs {
prefs(context).edit().putStringSet("gpuAutoInstalled", ids.toSet()).apply()
}
fun displayDriverFromAuto(context: Context): Boolean {
val id = androidDriver(context)
return id.isEmpty() || (gpuDriverMode(context) == GPU_DRIVERS_AUTO && id in gpuAutoInstalled(context))
}
fun picturePosition(context: Context): String =
prefs(context).getString("picturePosition", "center")
@@ -84,7 +84,7 @@ object CompositorHost {
com.droiddeck.launcher.gpu.TpUbwcHint.applyToProcess(context)
WaylandCompositor.nativeStartWithSurface(
surface, xdgRuntimeDir, driverPath, libraryName, nativeLibDir,
SessionPrefs.androidDriver(context).isEmpty(),
SessionPrefs.displayDriverFromAuto(context),
)
attached = surface
started = true