diff mbox series

[2/2] Changing Ardreno X185 Check to X1xxx Family Check

Message ID _GZ7LdBTzrPYK6bJtttu9hidDnuUoTNmXD1-ghFdF-gq24RJdrOagaXuCRYVbWFPAUE11C9PGOO-sRUS45w2DX8F6rB1xomA_dT3Blm2Dd4=@protonmail.com
State New
Headers show
Series [1/2] Changing Ardreno X185 Check to X1xxx Family Check | expand

Commit Message

John Schulz Sept. 21, 2024, 1:06 a.m. UTC
continuing off of last...

I believe the chip ID is correct but I did grab it from a msminfo32 report so it may not be. If someone with more internal hardware info could validate or direct a better way place to get it, that'd be much appreciated.

Thanks!
diff mbox series

Patch

diff --git a/drivers/gpu/drm/msm/adreno/adreno_gpu.h b/drivers/gpu/drm/msm/adreno/adreno_gpu.h
index 58d7e7915c57..09a38aa63f01 100644
--- a/drivers/gpu/drm/msm/adreno/adreno_gpu.h
+++ b/drivers/gpu/drm/msm/adreno/adreno_gpu.h
@@ -526,9 +526,14 @@  static inline int adreno_is_a750(struct adreno_gpu *gpu)
 	return gpu->info->chip_ids[0] == 0x43051401;
 }
 
-static inline int adreno_is_x185(struct adreno_gpu *gpu)
-{
-	return gpu->info->chip_ids[0] == 0x43050c01;
+static inline int adreno_is_x1xx_family(struct adreno_gpu *gpu){
+    switch (gpu->info->chip_ids[0]){
+    case 0x1fc31043: // X1-45
+    case 0x43050c01: // X1-85
+        return 1;
+    default:
+        return 0;
+    }
 }
 
 static inline int adreno_is_a740_family(struct adreno_gpu *gpu)