drop ifdef XF86_CRTC_VERSION

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2026-01-02 17:13:59 +01:00
committed by Enrico Weigelt
parent 80285869be
commit 7c5b0fa4bd

View File

@@ -226,12 +226,10 @@ crtc_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode,
vmwgfx_scanout_refresh(pixmap);
/* Only set gamma when needed, to avoid unneeded delays. */
#if defined(XF86_CRTC_VERSION) && XF86_CRTC_VERSION >= 3
if (!crtc->active && crtc->version >= 3)
crtc->funcs->gamma_set(crtc, crtc->gamma_red, crtc->gamma_green,
crtc->gamma_blue, crtc->gamma_size);
crtc->active = TRUE;
#endif
/*
* Strictly, this needs to be done only once per configuration change,