6c8d3e39b72abe897b08d9e90cae85e121863d2c breaks gamma setting with
servers older than 1.7. Keep the call to xf86HandleColormaps even with
KMS enabled, as it's a no-op in the cases we don't need it.

Signed-off-by: Francisco Jerez <[email protected]>
---
 src/nv_driver.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/nv_driver.c b/src/nv_driver.c
index 4255c19..4595940 100644
--- a/src/nv_driver.c
+++ b/src/nv_driver.c
@@ -1690,8 +1690,7 @@ NVScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, 
char **argv)
         * Initialize colormap layer.
         * Must follow initialization of the default colormap 
         */
-       if (!pNv->kms_enable &&
-           !xf86HandleColormaps(pScreen, 256, 8, NVLoadPalette,
+       if (!xf86HandleColormaps(pScreen, 256, 8, NVLoadPalette,
                                 NULL, CMAP_PALETTED_TRUECOLOR))
                return FALSE;
 
-- 
1.6.4.4

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

Reply via email to