summaryrefslogtreecommitdiff
path: root/src/radeon_kms.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-10-05 12:41:30 +1000
committerDave Airlie <airlied@redhat.com>2009-10-05 12:41:30 +1000
commit60d9685abddccec17c1a9a5ec48cbe9c92543e0f (patch)
treec63b49c4871accb48727231401760b46bfe973dd /src/radeon_kms.c
parentb0b10e548fd69b3ff67a0f9b71456b89c61cb4d6 (diff)
kms: setup colormap and gamma correctly.
We need to program the gamma at modeset. no need to use old cmap interface at all.
Diffstat (limited to 'src/radeon_kms.c')
-rw-r--r--src/radeon_kms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/radeon_kms.c b/src/radeon_kms.c
index 432cee78..f51913e2 100644
--- a/src/radeon_kms.c
+++ b/src/radeon_kms.c
@@ -766,8 +766,8 @@ Bool RADEONScreenInit_KMS(int scrnIndex, ScreenPtr pScreen,
// info->PointerMoved = pScrn->PointerMoved;
// pScrn->PointerMoved = RADEONPointerMoved;
- if (!drmmode_setup_colormap(pScreen, pScrn))
- return FALSE;
+ if (!miCreateDefColormap(pScreen))
+ return FALSE;
/* Note unused options */
if (serverGeneration == 1)