summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@openbsd.org>2009-01-11 19:49:34 +0100
committerMatthieu Herrb <matthieu.herrb@laas.fr>2009-01-11 19:49:34 +0100
commit52cf07f2924844af8a7d7236491276b7dabebb84 (patch)
tree8aa4bda3d62b9a0147d21a45bfbc862fed6039d2
parent6c87698c0ac5c6efc27c46b2a71ac238542c6f92 (diff)
Don't map the mmio region via the drm.obsd-xf86-video-intel-2.4.3
This was only passed onto the mesa dri driver, which hasn't needed this for a while. ok matthieu@.
-rw-r--r--src/i830_dri.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/i830_dri.c b/src/i830_dri.c
index 6bc49578..bbdde415 100644
--- a/src/i830_dri.c
+++ b/src/i830_dri.c
@@ -176,7 +176,7 @@ I830InitDma(ScrnInfoPtr pScrn)
info.ring_end = ring->mem->end + pI830->LinearAddr;
info.ring_size = ring->mem->size;
- info.mmio_offset = (unsigned int)pI830DRI->regs;
+ info.mmio_offset = -1;
info.sarea_priv_offset = sizeof(XF86DRISAREARec);
@@ -785,16 +785,6 @@ I830DRIDoMappings(ScreenPtr pScreen)
drmI830Sarea *sarea = (drmI830Sarea *) DRIGetSAREAPrivate(pScreen);
DPRINTF(PFX, "I830DRIDoMappings\n");
- pI830DRI->regsSize = I830_REG_SIZE;
- if (drmAddMap(pI830->drmSubFD, (drm_handle_t)pI830->MMIOAddr,
- pI830DRI->regsSize, DRM_REGISTERS, 0,
- (drmAddress) &pI830DRI->regs) < 0) {
- xf86DrvMsg(pScreen->myNum, X_ERROR, "[drm] drmAddMap(regs) failed\n");
- DRICloseScreen(pScreen);
- return FALSE;
- }
- xf86DrvMsg(pScreen->myNum, X_INFO, "[drm] Registers = 0x%08x\n",
- (int)pI830DRI->regs);
if (drmAddMap(pI830->drmSubFD,
(drm_handle_t)pI830->LpRing->mem->offset + pI830->LinearAddr,