[PATCH xserver v2] xf86cmap: Use old palette system for pseudocolour.

Michel Dänzer michel at daenzer.net
Fri Jan 21 01:15:09 PST 2011


From: Michel Dänzer <daenzer at vmware.com>

RandR doesn't seem to deal with pseudocolour at all, so without this the
pseudocolour palette never gets loaded to the hardware.

v2: Move logic into xf86_crtc_supports_gamma().

Signed-off-by: Michel Dänzer <daenzer at vmware.com>
---
 hw/xfree86/modes/xf86Crtc.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c
index c4470c3..a3a123e 100644
--- a/hw/xfree86/modes/xf86Crtc.c
+++ b/hw/xfree86/modes/xf86Crtc.c
@@ -3262,6 +3262,10 @@ xf86_crtc_notify(ScreenPtr screen)
 Bool
 xf86_crtc_supports_gamma(ScrnInfoPtr pScrn)
 {
+    /* RandR doesn't seem to deal with PseudoColor */
+    if (pScrn->defaultVisual == PseudoColor)
+	return FALSE;
+
     if (xf86CrtcConfigPrivateIndex != -1) {
 	xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(pScrn);
 	xf86CrtcPtr crtc;
-- 
1.7.2.3



More information about the xorg-devel mailing list