mirror of
https://github.com/X11Libre/xf86-video-amdgpu.git
synced 2026-03-24 01:24:31 +00:00
drop checking for XF86_LEASE_VERSION
It's always defined for about 7 years now. No need to keep special hacks for ancient Xservers. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
f1d32a31ea
commit
62898aa380
@@ -2994,7 +2994,6 @@ fail:
|
||||
static void
|
||||
drmmode_validate_leases(ScrnInfoPtr scrn)
|
||||
{
|
||||
#ifdef XF86_LEASE_VERSION
|
||||
ScreenPtr screen = scrn->pScreen;
|
||||
rrScrPrivPtr scr_priv = rrGetScrPriv(screen);
|
||||
AMDGPUEntPtr pAMDGPUEnt = AMDGPUEntPriv(scrn);
|
||||
@@ -3027,11 +3026,8 @@ drmmode_validate_leases(ScrnInfoPtr scrn)
|
||||
}
|
||||
|
||||
free(lessees);
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef XF86_LEASE_VERSION
|
||||
|
||||
static int
|
||||
drmmode_create_lease(RRLeasePtr lease, int *fd)
|
||||
{
|
||||
@@ -3116,14 +3112,10 @@ drmmode_terminate_lease(RRLeasePtr lease)
|
||||
}
|
||||
}
|
||||
|
||||
#endif // XF86_LEASE_VERSION
|
||||
|
||||
static const xf86CrtcConfigFuncsRec drmmode_xf86crtc_config_funcs = {
|
||||
.resize = drmmode_xf86crtc_resize,
|
||||
#ifdef XF86_LEASE_VERSION
|
||||
.create_lease = drmmode_create_lease,
|
||||
.terminate_lease = drmmode_terminate_lease
|
||||
#endif
|
||||
};
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user