mirror of
https://github.com/X11Libre/xf86-video-amdgpu.git
synced 2026-03-24 01:24:31 +00:00
Make libdrm >= 2.4.72 requirement explicit
And drop compatibility code for older versions. Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Michel Dänzer
parent
f9ba1e8fd4
commit
ff31320644
@@ -69,7 +69,7 @@ XORG_DRIVER_CHECK_EXT(XV, videoproto)
|
||||
XORG_DRIVER_CHECK_EXT(DPMSExtension, xextproto)
|
||||
|
||||
# Checks for libraries.
|
||||
PKG_CHECK_MODULES(LIBDRM, [libdrm >= 2.4.58])
|
||||
PKG_CHECK_MODULES(LIBDRM, [libdrm >= 2.4.72])
|
||||
PKG_CHECK_MODULES(LIBDRM_AMDGPU, [libdrm_amdgpu >= 2.4.72])
|
||||
PKG_CHECK_MODULES(GBM, [gbm])
|
||||
|
||||
|
||||
@@ -784,14 +784,8 @@ drmVBlankSeqType amdgpu_populate_vbl_request_type(xf86CrtcPtr crtc)
|
||||
if (crtc_id == 1)
|
||||
type |= DRM_VBLANK_SECONDARY;
|
||||
else if (crtc_id > 1)
|
||||
#ifdef DRM_VBLANK_HIGH_CRTC_SHIFT
|
||||
type |= (crtc_id << DRM_VBLANK_HIGH_CRTC_SHIFT) &
|
||||
DRM_VBLANK_HIGH_CRTC_MASK;
|
||||
#else
|
||||
ErrorF("amdgpu driver bug: %s called for CRTC %d > 1, but "
|
||||
"DRM_VBLANK_HIGH_CRTC_MASK not defined at build time\n",
|
||||
__func__, crtc_id);
|
||||
#endif
|
||||
|
||||
return type;
|
||||
}
|
||||
@@ -1366,7 +1360,6 @@ Bool amdgpu_dri2_screen_init(ScreenPtr pScreen)
|
||||
dri2_info.CopyRegion = amdgpu_dri2_copy_region;
|
||||
|
||||
if (info->drmmode.count_crtcs > 2) {
|
||||
#ifdef DRM_CAP_VBLANK_HIGH_CRTC
|
||||
uint64_t cap_value;
|
||||
|
||||
if (drmGetCap
|
||||
@@ -1381,12 +1374,6 @@ Bool amdgpu_dri2_screen_init(ScreenPtr pScreen)
|
||||
"handle VBLANKs on CRTC > 1\n");
|
||||
scheduling_works = FALSE;
|
||||
}
|
||||
#else
|
||||
xf86DrvMsg(pScrn->scrnIndex, X_WARNING,
|
||||
"You need to rebuild against a "
|
||||
"newer libdrm to handle VBLANKs on CRTC > 1\n");
|
||||
scheduling_works = FALSE;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (scheduling_works) {
|
||||
|
||||
@@ -36,10 +36,6 @@
|
||||
#include "amdgpu_probe.h"
|
||||
#include "amdgpu.h"
|
||||
|
||||
#ifndef DRM_CAP_TIMESTAMP_MONOTONIC
|
||||
#define DRM_CAP_TIMESTAMP_MONOTONIC 0x6
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
unsigned fb_id;
|
||||
drmModeFBPtr mode_fb;
|
||||
|
||||
Reference in New Issue
Block a user