mirror of
https://github.com/X11Libre/xf86-video-amdgpu.git
synced 2026-03-24 01:24:31 +00:00
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:
committed by
Michel Dänzer
parent
ca84c49c88
commit
ca1cf24d4e
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user