diff --git a/src/amdgpu_glamor.c b/src/amdgpu_glamor.c index 61786b0..e72a974 100644 --- a/src/amdgpu_glamor.c +++ b/src/amdgpu_glamor.c @@ -79,11 +79,7 @@ Bool amdgpu_glamor_pre_init(ScrnInfoPtr scrn) pointer glamor_module; CARD32 version; -#if XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(1,20,99,0,0) - if (scrn->depth < 24) { -#else if (scrn->depth < 15) { -#endif xf86DrvMsg(scrn->scrnIndex, X_ERROR, "Depth %d not supported with glamor, disabling\n", scrn->depth); @@ -138,11 +134,8 @@ amdgpu_glamor_create_textured_pixmap(PixmapPtr pixmap, struct amdgpu_buffer *bo) if (bo->flags & AMDGPU_BO_FLAGS_GBM) { return glamor_egl_create_textured_pixmap_from_gbm_bo(pixmap, - bo->bo.gbm -#if XORG_VERSION_CURRENT > XORG_VERSION_NUMERIC(1,19,99,903,0) - , FALSE -#endif - ); + bo->bo.gbm, + FALSE); } else { uint32_t bo_handle; diff --git a/src/amdgpu_kms.c b/src/amdgpu_kms.c index 4c67dbd..0b5d9a9 100644 --- a/src/amdgpu_kms.c +++ b/src/amdgpu_kms.c @@ -1276,11 +1276,6 @@ static void AMDGPUBlockHandler_KMS(BLOCKHANDLER_ARGS_DECL) } } -#if XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(1,19,0,0,0) - if (info->use_glamor) - amdgpu_glamor_flush(pScrn); -#endif - amdgpu_dirty_update(pScrn); } diff --git a/src/amdgpu_video.c b/src/amdgpu_video.c index cc96b9c..3f5c7ee 100644 --- a/src/amdgpu_video.c +++ b/src/amdgpu_video.c @@ -150,7 +150,6 @@ amdgpu_crtc_covering_box(ScreenPtr pScreen, BoxPtr box, Bool screen_is_xf86_hint return best_crtc; } -#if ABI_VIDEODRV_VERSION >= SET_ABI_VERSION(23, 0) static RRCrtcPtr amdgpu_crtc_covering_box_on_secondary(ScreenPtr pScreen, BoxPtr box) { @@ -170,7 +169,6 @@ amdgpu_crtc_covering_box_on_secondary(ScreenPtr pScreen, BoxPtr box) return NULL; } -#endif RRCrtcPtr amdgpu_randr_crtc_covering_drawable(DrawablePtr pDraw) @@ -185,11 +183,9 @@ amdgpu_randr_crtc_covering_drawable(DrawablePtr pDraw) box.y2 = box.y1 + pDraw->height; crtc = amdgpu_crtc_covering_box(pScreen, &box, TRUE); -#if ABI_VIDEODRV_VERSION >= SET_ABI_VERSION(23, 0) if (!crtc) { crtc = amdgpu_crtc_covering_box_on_secondary(pScreen, &box); } -#endif return crtc; } diff --git a/src/compat-api.h b/src/compat-api.h index d60050d..b5bcf52 100644 --- a/src/compat-api.h +++ b/src/compat-api.h @@ -26,25 +26,9 @@ #ifndef COMPAT_API_H #define COMPAT_API_H -#if ABI_VIDEODRV_VERSION >= SET_ABI_VERSION(22,0) #define HAVE_NOTIFY_FD 1 -#endif -#if ABI_VIDEODRV_VERSION >= SET_ABI_VERSION(23, 0) #define BLOCKHANDLER_ARGS_DECL ScreenPtr pScreen, pointer pTimeout #define BLOCKHANDLER_ARGS pScreen, pTimeout -#else -#define BLOCKHANDLER_ARGS_DECL ScreenPtr pScreen, pointer pTimeout, pointer pReadmask -#define BLOCKHANDLER_ARGS pScreen, pTimeout, pReadmask -#endif - -#if ABI_VIDEODRV_VERSION < SET_ABI_VERSION(25, 2) -#define current_primary current_master -#define primary_pixmap master_pixmap -#define secondary_dst slave_dst -#define secondary_list slave_list -#define secondary_head slave_head -#define is_output_secondary is_output_slave -#endif #endif