From 46c0cf7242cf460d8b22118d65cf2fa89c92eccf Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 2 Jan 2026 17:17:31 +0100 Subject: [PATCH] drop obsolete ifdef XF86_CRTC_VERSION Signed-off-by: Enrico Weigelt, metux IT consult --- src/sna/sna.h | 2 -- src/sna/sna_display.c | 12 ------------ src/uxa/intel.h | 2 -- 3 files changed, 16 deletions(-) diff --git a/src/sna/sna.h b/src/sna/sna.h index e6d83194..3af67456 100644 --- a/src/sna/sna.h +++ b/src/sna/sna.h @@ -44,9 +44,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include #include -#if XF86_CRTC_VERSION >= 5 #define HAS_PIXMAP_SHARING 1 -#endif #include #include diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index cec5c4aa..676522bb 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -63,11 +63,7 @@ void *alloca(size_t); #include #include -#if XF86_CRTC_VERSION >= 3 #define HAS_GAMMA 1 -#else -#define HAS_GAMMA 0 -#endif #include #if defined(HAVE_X11_EXTENSIONS_DPMSCONST_H) @@ -1274,9 +1270,7 @@ sna_crtc_force_outputs_on(xf86CrtcPtr crtc) to_sna_output(output)->last_detect = now; } -#if XF86_CRTC_VERSION >= 3 crtc->active = TRUE; -#endif } static void @@ -3290,9 +3284,7 @@ sna_crtc_set_scanout_pixmap(xf86CrtcPtr crtc, PixmapPtr pixmap) #endif static const xf86CrtcFuncsRec sna_crtc_funcs = { -#if XF86_CRTC_VERSION >= 1 .dpms = sna_crtc_dpms, -#endif .set_mode_major = sna_crtc_set_mode_major, .gamma_set = sna_crtc_gamma_set, .destroy = sna_crtc_destroy, @@ -8515,9 +8507,7 @@ static bool sna_mode_shutdown_crtc(xf86CrtcPtr crtc) __sna_crtc_index(to_sna_crtc(crtc)), __sna_crtc_id(to_sna_crtc(crtc))); sna_crtc_disable(crtc, true); -#if XF86_CRTC_VERSION >= 3 crtc->active = FALSE; -#endif if (crtc->enabled) { crtc->enabled = FALSE; disabled = true; @@ -8603,9 +8593,7 @@ void sna_mode_check(struct sna *sna) assert(sna_crtc); -#if XF86_CRTC_VERSION >= 3 assert(sna_crtc->bo == NULL || crtc->active); -#endif expected[0] = sna_crtc->bo ? fb_id(sna_crtc->bo) : 0; expected[1] = sna_crtc->flip_bo ? fb_id(sna_crtc->flip_bo) : -1; diff --git a/src/uxa/intel.h b/src/uxa/intel.h index d005797d..4fe5fecd 100644 --- a/src/uxa/intel.h +++ b/src/uxa/intel.h @@ -83,9 +83,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #define MONITOR_EDID_COMPLETE_RAWDATA EDID_COMPLETE_RAWDATA #endif -#if XF86_CRTC_VERSION >= 5 #define INTEL_PIXMAP_SHARING 1 -#endif #define MAX_PIPES 4 /* consider making all users dynamic */