summaryrefslogtreecommitdiff
path: root/src/i830_memory.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-10-05 13:31:31 -0700
committerEric Anholt <eric@anholt.net>2009-10-05 13:41:39 -0700
commitd26f4c493721dbb2e2cbf4efcf8d37228d1b1f3b (patch)
tree5bb8632ed88cd6bd7535e0271e615de834bb7931 /src/i830_memory.c
parent33c488e83676d26e69145ea615f75ca52768f400 (diff)
Remove UMS overlay support.
The replacement code is now landed, and the rest of UMS is about to disappear.
Diffstat (limited to 'src/i830_memory.c')
-rw-r--r--src/i830_memory.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/i830_memory.c b/src/i830_memory.c
index 26e4cfde..3c152074 100644
--- a/src/i830_memory.c
+++ b/src/i830_memory.c
@@ -342,7 +342,6 @@ i830_reset_allocations(ScrnInfoPtr pScrn)
pI830->cursor_mem_argb[p] = NULL;
}
pI830->front_buffer = NULL;
- pI830->overlay_regs = NULL;
pI830->power_context = NULL;
pI830->ring.mem = NULL;
pI830->fake_bufmgr_mem = NULL;
@@ -974,44 +973,6 @@ i830_allocate_ringbuffer(ScrnInfoPtr pScrn)
return TRUE;
}
-/**
- * Allocate space for overlay registers.
- */
-static Bool
-i830_allocate_overlay(ScrnInfoPtr pScrn)
-{
- I830Ptr pI830 = I830PTR(pScrn);
- int flags = 0;
-
- /* Only allocate if overlay is going to be enabled. */
- if (!pI830->XvEnabled)
- return TRUE;
-
- if (OVERLAY_NOEXIST(pI830))
- return TRUE;
-
- if (!OVERLAY_NOPHYSICAL(pI830)) {
- if (pI830->use_drm_mode)
- return TRUE;
- flags |= NEED_PHYSICAL_ADDR;
- }
-
- pI830->overlay_regs = i830_allocate_memory(pScrn, "overlay registers",
- OVERLAY_SIZE, PITCH_NONE, GTT_PAGE_SIZE,
- flags, TILE_NONE);
- if (pI830->overlay_regs == NULL) {
- xf86DrvMsg(pScrn->scrnIndex, X_WARNING,
- "Failed to allocate Overlay register space.\n");
- /* This failure isn't fatal. */
- }
-
- if (flags & NEED_PHYSICAL_ADDR)
- if (pI830->use_drm_mode)
- ; /* need physical addr */
-
- return TRUE;
-}
-
static Bool
IsTileable(ScrnInfoPtr pScrn, int pitch)
{
@@ -1293,9 +1254,6 @@ i830_allocate_2d_memory(ScrnInfoPtr pScrn)
i830_init_bufmgr(pScrn);
}
- if (!pI830->use_drm_mode)
- i830_allocate_overlay(pScrn);
-
pI830->front_buffer = i830_allocate_framebuffer(pScrn);
if (pI830->front_buffer == NULL)
return FALSE;