From 04ed92e3db8d9fcf2a1089ed433ab67bf0969655 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 21 Apr 2009 15:17:31 -0700 Subject: [PATCH] Remove dead xoffset/yoffset from pre-randr. --- src/i830.h | 4 ---- src/i830_driver.c | 5 +---- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/i830.h b/src/i830.h index 49e08ce4..b252f56c 100644 --- a/src/i830.h +++ b/src/i830.h @@ -607,10 +607,6 @@ typedef struct _I830Rec { Bool suspended; Bool leaving; - /* fbOffset converted to (x, y). */ - int xoffset; - int yoffset; - unsigned int SaveGeneration; OsTimerPtr devicesTimer; diff --git a/src/i830_driver.c b/src/i830_driver.c index fabf94a6..f1ea5115 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -3147,9 +3147,6 @@ I830ScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) pScrn->fbOffset = pI830->front_buffer->offset; - pI830->xoffset = (pScrn->fbOffset / pI830->cpp) % pScrn->displayWidth; - pI830->yoffset = (pScrn->fbOffset / pI830->cpp) / pScrn->displayWidth; - if (!pI830->use_drm_mode) { vgaHWSetMmioFuncs(hwp, pI830->MMIOBase, 0); vgaHWGetIOBase(hwp); @@ -3330,7 +3327,7 @@ i830AdjustFrame(int scrnIndex, int x, int y, int flags) xf86CrtcPtr crtc = output->crtc; DPRINTF(PFX, "i830AdjustFrame: y = %d (+ %d), x = %d (+ %d)\n", - x, pI830->xoffset, y, pI830->yoffset); + x, crtc->desiredX, y, crtc->desiredY); if (pI830->use_drm_mode) return;