summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2016-08-19 12:42:38 +0200
committerMarek Olšák <marek.olsak@amd.com>2016-08-22 15:06:55 +0200
commitc4364520691d18961f0a6b77071baeeffaa80a11 (patch)
treef39899645b91247f5360604e708bc6ddb8cf96d1
parent2eb5d77b841e55e7328df4b95c0d41fec30ce10f (diff)
Fix cursor size for SI
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Acked-by: Edward O'Callaghan <funfunctor@folklore1984.net>
-rw-r--r--src/amdgpu_kms.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/amdgpu_kms.c b/src/amdgpu_kms.c
index 9ee48df..d9f15a4 100644
--- a/src/amdgpu_kms.c
+++ b/src/amdgpu_kms.c
@@ -929,8 +929,14 @@ Bool AMDGPUPreInit_KMS(ScrnInfoPtr pScrn, int flags)
else
pAMDGPUEnt->HasCRTC2 = TRUE;
- info->cursor_w = CURSOR_WIDTH_CIK;
- info->cursor_h = CURSOR_HEIGHT_CIK;
+ if (info->ChipFamily >= CHIP_FAMILY_TAHITI &&
+ info->ChipFamily <= CHIP_FAMILY_HAINAN) {
+ info->cursor_w = CURSOR_WIDTH;
+ info->cursor_h = CURSOR_HEIGHT;
+ } else {
+ info->cursor_w = CURSOR_WIDTH_CIK;
+ info->cursor_h = CURSOR_HEIGHT_CIK;
+ }
amdgpu_query_heap_size(pAMDGPUEnt->pDev, AMDGPU_GEM_DOMAIN_GTT,
&heap_size, &max_allocation);