fix: reduce flickering on thor and a7xx: match the A740 TP UBWC flag hint to the system driver so Android UI stops flickering (#963)

This commit is contained in:
Kurt Himebauch authored and GitHub committed 2026-10-16 13:37:28 -04:00
1 parent 3f3ed3923b
commit 5e57d78b5d
4 files changed
+64

No files matched your search

@@ -0,0 +1,25 @@
package com.droiddeck.launcher.gpu
import org.junit.Assert.assertEquals
import org.junit.Assert.assertNull
import org.junit.Test
class TpUbwcHintTest {
@Test fun a740OnABlobV6xxTurnsTheHintOff() {
assertEquals("enable_tp_ubwc_flag_hint=0", TpUbwcHint.features(740, "512.676.53"))
}
@Test fun a740OnANewerBlobTurnsTheHintOn() {
assertEquals("enable_tp_ubwc_flag_hint=1", TpUbwcHint.features(740, "512.762.10"))
}
@Test fun otherGpusKeepTheirDriverDefault() {
assertNull(TpUbwcHint.features(750, "512.762.10"))
assertNull(TpUbwcHint.features(830, "512.676.53"))
}
@Test fun anUnreadableSystemDriverKeepsTheDriverDefault() {
assertNull(TpUbwcHint.features(740, null))
assertNull(TpUbwcHint.features(740, "garbage"))
}
}