summaryrefslogtreecommitdiff
path: root/src/i830_video.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-09-30 16:29:53 -0700
committerEric Anholt <eric@anholt.net>2009-10-06 16:22:31 -0700
commitb9b159c49854d8d9d2207946bb583537bb0d48d6 (patch)
tree6f8ca392a1d5141dbee24b506ebf2b836f74d673 /src/i830_video.c
parentd26f4c493721dbb2e2cbf4efcf8d37228d1b1f3b (diff)
Remove UMS support.
At this point, the only remaining feature regressions should be the lack of overlay support (about to land), and the need to update the XVMC code to work in the presence of KMS. Acked-by: Keith Packard <keithp@keithp.com> (in principle) Acked-by: Carl Worth <cworth@cworth.org> (in principle)
Diffstat (limited to 'src/i830_video.c')
-rw-r--r--src/i830_video.c32
1 files changed, 2 insertions, 30 deletions
diff --git a/src/i830_video.c b/src/i830_video.c
index 9aab60ce..379a4318 100644
--- a/src/i830_video.c
+++ b/src/i830_video.c
@@ -1667,7 +1667,8 @@ I830PutImage(ScrnInfoPtr pScrn,
if (IS_I965G(pI830)) {
if (xvmc_passthrough(id, pPriv->rotation)) {
- pPriv->YBufOffset = buf - pI830->FbBase;
+ /* XXX: KMS */
+ pPriv->YBufOffset = (uintptr_t)buf;
pPriv->UBufOffset = pPriv->YBufOffset + height*width;
pPriv->VBufOffset = pPriv->UBufOffset + height*width/4;
}
@@ -1811,32 +1812,3 @@ I830VideoBlockHandler(int i, pointer blockData, pointer pTimeout,
}
}
}
-
-void
-i830_crtc_dpms_video(xf86CrtcPtr crtc, Bool on)
-{
- ScrnInfoPtr pScrn = crtc->scrn;
- I830Ptr pI830 = I830PTR(pScrn);
- I830PortPrivPtr pPriv;
-
- /* no overlay */
- if (pI830->adaptor == NULL)
- return;
-
- pPriv = GET_PORT_PRIVATE(pScrn);
-
- if (crtc != pPriv->current_crtc)
- return;
-
- /* Check if it's the crtc the overlay is off */
- if (!on) {
- /* We stop the video when mode switching, so we don't lock up
- * the engine. The overlayOK will determine whether we can re-enable
- * with the current video on completion of the mode switch.
- */
- I830StopVideo(pScrn, pPriv, TRUE);
- pPriv->current_crtc = NULL;
- pPriv->overlayOK = FALSE;
- pPriv->oneLineMode = FALSE;
- }
-}