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 |
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)