mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-18 20:36:04 +00:00
fix(graphics): fall back from unsupported auto display drivers (#2356)
* fix(graphics): fall back from unsupported auto display drivers * refactor(graphics): drop the unused Auto recommendation lookup * fix(graphics): repair automatic display fallback build * test(wayland): keep Vulkan caller harness linkable --------- Co-authored-by: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>
This commit is contained in:
1 parent
2e64ae7575
commit
4e3eeea5e2
10 files changed
+57
-3
No files matched your search
@@ -57,7 +57,12 @@ class TurnipDriverAutoTest {
|
||||
gpu(0, adreno = false) to "system",
|
||||
gpu(0) to "turnip25.1.0",
|
||||
gpu(650) to "turnip26.3.0-a6xx",
|
||||
gpu(710) to "system",
|
||||
gpu(720) to "system",
|
||||
gpu(722) to "system",
|
||||
gpu(730) to "turnip25.1.0",
|
||||
gpu(740) to "turnip25.1.0",
|
||||
gpu(750) to "turnip25.1.0",
|
||||
gpu(850) to "turnip-sdk36",
|
||||
)) {
|
||||
var calls = 0
|
||||
@@ -96,6 +101,17 @@ class TurnipDriverAutoTest {
|
||||
assertEquals("test-pinned", TurnipDriver(context) { error("manual choice must precede detection") }.install())
|
||||
}
|
||||
|
||||
@Test fun autoInstalledLowSevenDisplayDriverFallsBackToSystem() {
|
||||
val context = RuntimeEnvironment.getApplication()
|
||||
val dir = File(context.filesDir, "graphics_driver/test-pinned").apply { mkdirs() }
|
||||
File(dir, "meta.json").writeText("""{"libraryName":"test.so"}""")
|
||||
File(dir, "test.so").writeText("")
|
||||
SessionPrefs.setAndroidDriver(context, "test-pinned")
|
||||
SessionPrefs.setGpuAutoInstalled(context, setOf("test-pinned"))
|
||||
assertEquals("system", TurnipDriver(context) { gpu(710) }.autoId())
|
||||
}
|
||||
|
||||
|
||||
private fun pin(library: String): String {
|
||||
val context = RuntimeEnvironment.getApplication()
|
||||
val dir = File(context.filesDir, "graphics_driver/test-pinned").apply { mkdirs() }
|
||||
|
||||
Reference in new issue
Block a user