From 5bc194d3d3c87bb0128d9ac10f090f031345eb37 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 10 Aug 2007 17:54:32 -0700 Subject: [PATCH] Set DSPATILEOFF/DSPBTILEOFF to handle 965 tiled frame buffers. DSPATILEOFF and DSPBTILEOFF replace DSPASURF and DSPBSURF when the frame buffer is in tiled mode. --- src/i830_display.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/i830_display.c b/src/i830_display.c index a77da1b0..7a229b27 100644 --- a/src/i830_display.c +++ b/src/i830_display.c @@ -375,6 +375,7 @@ i830PipeSetBase(xf86CrtcPtr crtc, int x, int y) unsigned long Start, Offset; int dspbase = (pipe == 0 ? DSPABASE : DSPBBASE); int dspsurf = (pipe == 0 ? DSPASURF : DSPBSURF); + int dsptileoff = (pipe == 0 ? DSPATILEOFF : DSPBTILEOFF); Offset = ((y * pScrn->displayWidth + x) * pI830->cpp); if (pI830->front_buffer == NULL) { @@ -399,6 +400,7 @@ i830PipeSetBase(xf86CrtcPtr crtc, int x, int y) POSTING_READ(dspbase); OUTREG(dspsurf, Start); POSTING_READ(dspsurf); + OUTREG(dsptileoff, (y << 16) | x); } else { OUTREG(dspbase, Start + Offset); POSTING_READ(dspbase);