Fix cursor size for SI

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Acked-by: Edward O'Callaghan <funfunctor@folklore1984.net>
(Cherry picked from commit c436452069)
This commit is contained in:
Marek Olšák
2016-09-14 17:30:19 +09:00
committed by Michel Dänzer
parent ca84c49c88
commit ca1cf24d4e

View File

@@ -939,8 +939,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);