[PATCH xf86-video-amdgpu 0/3] Fixes for building against older Xorg

Michel Dänzer michel at daenzer.net
Mon Mar 6 09:33:00 UTC 2017

From: Michel Dänzer <michel.daenzer at amd.com>

This fixes all errors down to Xorg 1.10.

One warning remains, see below. This could be silenced by casting the
return value of amdgpu_get_marketing_name to (char*), but that's ugly
and doesn't seem worth it.

../../src/amdgpu_kms.c: In function ‘AMDGPUPreInitChipType_KMS’:
../../src/amdgpu_kms.c:1174:17: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  pScrn->chipset = amdgpu_get_marketing_name(pAMDGPUEnt->pDev);

Michel Dänzer (3):
  Don't use pScrn->is_gpu in AMDGPUCreateScreenResources_KMS
  Use local implementation of RegionDuplicate for older xserver
  Only define transform_region for XF86_CRTC_VERSION >= 4

 configure.ac     |  6 ++++++
 src/amdgpu_drv.h | 19 +++++++++++++++++++
 src/amdgpu_kms.c |  6 +++++-
 3 files changed, 30 insertions(+), 1 deletion(-)


More information about the amd-gfx mailing list