Fixes build for CRTC ABI < 3.
Signed-off-by: Francisco Jerez <[email protected]>
---
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
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau