Fix cursor size for SI
PATCH 1/1 Fix cursor size for SI
From: Marek Olšák <[email protected]>
This doesn't fix the missing cursor, which seems to be a kernel issue, because it's missing with modesetting as well.
--- src/amdgpu_kms.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
src/amdgpu_kms.c +8 -2
@@ -922,22 +922,28 @@ Bool AMDGPUPreInit_KMS(ScrnInfoPtr pScrn, int flags) goto fail; }AMDGPUSetupCapabilities (pScrn);if (info->drmmode.count_crtcs ==1 ) pAMDGPUEnt->HasCRTC2 = FALSE;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); info->gart_size = heap_size;amdgpu_query_heap_size (pAMDGPUEnt->pDev,AMDGPU_GEM_DOMAIN_VRAM , &heap_size, &max_allocation); info->vram_size = max_allocation; xf86DrvMsg(pScrn->scrnIndex, X_INFO, "mem size init: gart size :%llx vram size: s:%llx visible:%llx\n",
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1471603432-5378-1-git-send-email-maraeo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Edward O'Callaghan
Acked-byPerhaps a follow up that queries the kernel instead, however better this than broken.
Quoted 34 lines · Marek Olšák
From: Marek Olšák <[email protected]>
This doesn't fix the missing cursor, which seems to be a kernel issue, because it's missing with modesetting as well.
--- src/amdgpu_kms.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)src/amdgpu_kms.c +8
-2@@ -922,22 +922,28 @@ Bool AMDGPUPreInit_KMS(ScrnInfoPtr pScrn, int flags) goto fail; }AMDGPUSetupCapabilities (pScrn);if (info->drmmode.count_crtcs ==1 ) pAMDGPUEnt->HasCRTC2 = FALSE;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 ; + }
src/amdgpu_kms.c Bool AMDGPUPreInit_KMS(ScrnInfoPtr pScrn, int flags) · line 949
Quoted 10 lines
src/amdgpu_kms.c +0
-0amdgpu_query_heap_size (pAMDGPUEnt->pDev,AMDGPU_GEM_DOMAIN_GTT , &heap_size, &max_allocation); info->gart_size = heap_size;amdgpu_query_heap_size (pAMDGPUEnt->pDev,AMDGPU_GEM_DOMAIN_VRAM , &heap_size, &max_allocation); info->vram_size = max_allocation; xf86DrvMsg(pScrn->scrnIndex, X_INFO, "mem size init: gart size :%llx vram size: s:%llx visible:%llx\n",
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Michel Dänzer
Reviewed-byQuoted 4 lines · Marek Olšák
From: Marek Olšák <[email protected]>
This doesn't fix the missing cursor, which seems to be a kernel issue, because it's missing with modesetting as well.
With this sentence removed from the commit log,
Signature · 6 lines
Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx