diff options
author | Eric Anholt <anholt@debian-sony.jf.intel.com> | 2006-03-08 12:54:14 -0800 |
---|---|---|
committer | Eric Anholt <anholt@leguin.anholt.net> | 2006-04-06 15:58:24 -0700 |
commit | de4a9e4a7891daa1488d17bf4c22283759f97373 (patch) | |
tree | 710738db20c97dba8649ac3c2e896c678e7aa6c2 | |
parent | 02341aa68cf2171e037196019f2553f0d1b1bd0d (diff) |
Add a couple more bits to panel auto-fitting, though it isn't working yet.
-rw-r--r-- | src/i810_reg.h | 2 | ||||
-rw-r--r-- | src/i830_display.c | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/i810_reg.h b/src/i810_reg.h index c9b3f5ad..f781b93c 100644 --- a/src/i810_reg.h +++ b/src/i810_reg.h @@ -680,6 +680,8 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # define PFIT_VERT_SCALE_MASK 0xfff00000 # define PFIT_HORIZ_SCALE_MASK 0x0000fff0 +#define PFIT_AUTO_RATIOS 0x61238 + #define DPLL_A 0x06014 #define DPLL_B 0x06018 # define DPLL_VCO_ENABLE (1 << 31) diff --git a/src/i830_display.c b/src/i830_display.c index cfff47ee..a7a01442 100644 --- a/src/i830_display.c +++ b/src/i830_display.c @@ -475,8 +475,10 @@ i830PipeSetMode(ScrnInfoPtr pScrn, DisplayModePtr pMode, int pipe) * screen. */ /* XXX: Allow (auto-?) enabling of 8-to-6 dithering */ - OUTREG(PFIT_CONTROL, PFIT_ENABLE | VERT_AUTO_SCALE | - HORIZ_AUTO_SCALE); + OUTREG(PFIT_CONTROL, PFIT_ENABLE | + VERT_AUTO_SCALE | HORIZ_AUTO_SCALE | + VERT_INTERP_BILINEAR | HORIZ_INTERP_BILINEAR); + i830SetLVDSPanelPower(pScrn, TRUE); } } |