diff options
author | Luká\u0161 Hejtmánek <xhejtman@mail.muni.cz> | 2006-07-11 10:13:18 -0700 |
---|---|---|
committer | Eric Anholt <anholt@FreeBSD.org> | 2006-07-11 10:13:18 -0700 |
commit | f9499a68da0ce459fed0b29b998678fd81898a51 (patch) | |
tree | 5073e637e2a5e35d139fcb7b95824ff2fb48f04e /src/i830_display.c | |
parent | 7068468ac1951bfca0071bb9b1a99df4f37368a0 (diff) |
Make gamma settings apply to the cursor as well, and fix clone-mode gamma.
Diffstat (limited to 'src/i830_display.c')
-rw-r--r-- | src/i830_display.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/i830_display.c b/src/i830_display.c index e8c8509b..1496c3a3 100644 --- a/src/i830_display.c +++ b/src/i830_display.c @@ -476,7 +476,9 @@ i830PipeSetMode(ScrnInfoPtr pScrn, DisplayModePtr pMode, int pipe) if (outputs & (PIPE_TV_ACTIVE | PIPE_TV2_ACTIVE)) dpll |= PLL_REF_INPUT_TVCLKINBC; - else + else if (outputs & (PIPE_LCD_ACTIVE)) + dpll |= PLLB_REF_INPUT_SPREADSPECTRUMIN; + else dpll |= PLL_REF_INPUT_DREFCLK; if (is_dvo) { @@ -556,6 +558,10 @@ i830PipeSetMode(ScrnInfoPtr pScrn, DisplayModePtr pMode, int pipe) FatalError("unknown display bpp\n"); } + if (pI830->gammaEnabled[pipe]) { + dspcntr |= DISPPLANE_GAMMA_ENABLE; + } + if (is_sdvo) adpa = ADPA_DAC_DISABLE; else |