[Nouveau] [PATCH] kms: No need to upload gamma on set_mode_major in older X servers.
Francisco Jerez
currojerez at riseup.net
Thu Aug 20 09:44:38 PDT 2009
Fixes build for CRTC ABI < 3.
Signed-off-by: Francisco Jerez <currojerez at riseup.net>
---
src/drmmode_display.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 2c2076c..4b9aecf 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -320,12 +320,14 @@ drmmode_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode,
drmmode_output_dpms(output, DPMSModeOn);
}
+#if XF86_CRTC_VERSION >= 3
/* Only upload when needed, to avoid unneeded delays. */
if (!crtc->active)
crtc->funcs->gamma_set(crtc, crtc->gamma_red, crtc->gamma_green,
crtc->gamma_blue, crtc->gamma_size);
crtc->active = TRUE;
+#endif
done:
if (!ret) {
--
1.6.3.3
More information about the Nouveau
mailing list