diff options
author | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2008-03-18 16:54:15 +0800 |
---|---|---|
committer | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2008-03-18 16:54:15 +0800 |
commit | 03ccffd5b9b8108166ea143884a1a0a6417f3236 (patch) | |
tree | cba74c28abae7bd53d7882ed1d2fd8c608264c43 /src/i830_video.c | |
parent | ac763634069fe070b3afc073ce437959612d39fe (diff) | |
parent | d72e18c10995079121eded758a60ed99b5b8ce1a (diff) |
Merge branch 'master' into xvmc
Diffstat (limited to 'src/i830_video.c')
-rw-r--r-- | src/i830_video.c | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/src/i830_video.c b/src/i830_video.c index 99723c67..0d0a9a03 100644 --- a/src/i830_video.c +++ b/src/i830_video.c @@ -453,18 +453,18 @@ i830_overlay_on(ScrnInfoPtr pScrn) deactivate = i830_pipe_a_require_activate (pScrn); overlay->OCMD &= ~OVERLAY_ENABLE; - BEGIN_LP_RING(6); - OUT_RING(MI_FLUSH | MI_WRITE_DIRTY_STATE); - OUT_RING(MI_NOOP); - OUT_RING(MI_OVERLAY_FLIP | MI_OVERLAY_FLIP_ON); + BEGIN_BATCH(6); + OUT_BATCH(MI_FLUSH | MI_WRITE_DIRTY_STATE); + OUT_BATCH(MI_NOOP); + OUT_BATCH(MI_OVERLAY_FLIP | MI_OVERLAY_FLIP_ON); if (OVERLAY_NOPHYSICAL(pI830)) - OUT_RING(pI830->overlay_regs->offset | OFC_UPDATE); + OUT_BATCH(pI830->overlay_regs->offset | OFC_UPDATE); else - OUT_RING(pI830->overlay_regs->bus_addr | OFC_UPDATE); + OUT_BATCH(pI830->overlay_regs->bus_addr | OFC_UPDATE); /* Wait for the overlay to light up before attempting to use it */ - OUT_RING(MI_WAIT_FOR_EVENT | MI_WAIT_FOR_OVERLAY_FLIP); - OUT_RING(MI_NOOP); - ADVANCE_LP_RING(); + OUT_BATCH(MI_WAIT_FOR_EVENT | MI_WAIT_FOR_OVERLAY_FLIP); + OUT_BATCH(MI_NOOP); + ADVANCE_BATCH(); i830WaitSync(pScrn); /* @@ -498,12 +498,12 @@ i830_overlay_continue(ScrnInfoPtr pScrn, Bool update_filter) flip_addr |= OFC_UPDATE; OVERLAY_DEBUG ("overlay_continue cmd 0x%08x -> 0x%08x sta 0x%08x\n", overlay->OCMD, INREG(OCMD_REGISTER), INREG(DOVSTA)); - BEGIN_LP_RING(4); - OUT_RING(MI_FLUSH | MI_WRITE_DIRTY_STATE); - OUT_RING(MI_NOOP); - OUT_RING(MI_OVERLAY_FLIP | MI_OVERLAY_FLIP_CONTINUE); - OUT_RING(flip_addr); - ADVANCE_LP_RING(); + BEGIN_BATCH(4); + OUT_BATCH(MI_FLUSH | MI_WRITE_DIRTY_STATE); + OUT_BATCH(MI_NOOP); + OUT_BATCH(MI_OVERLAY_FLIP | MI_OVERLAY_FLIP_CONTINUE); + OUT_BATCH(flip_addr); + ADVANCE_BATCH(); OVERLAY_DEBUG("overlay_continue\n"); } @@ -524,10 +524,10 @@ i830_overlay_off(ScrnInfoPtr pScrn) * executed */ { - BEGIN_LP_RING(2); - OUT_RING(MI_WAIT_FOR_EVENT | MI_WAIT_FOR_OVERLAY_FLIP); - OUT_RING(MI_NOOP); - ADVANCE_LP_RING(); + BEGIN_BATCH(2); + OUT_BATCH(MI_WAIT_FOR_EVENT | MI_WAIT_FOR_OVERLAY_FLIP); + OUT_BATCH(MI_NOOP); + ADVANCE_BATCH(); i830WaitSync(pScrn); } @@ -538,17 +538,17 @@ i830_overlay_off(ScrnInfoPtr pScrn) overlay->OCMD &= ~OVERLAY_ENABLE; OVERLAY_DEBUG ("overlay_off cmd 0x%08x -> 0x%08x sta 0x%08x\n", overlay->OCMD, INREG(OCMD_REGISTER), INREG(DOVSTA)); - BEGIN_LP_RING(6); - OUT_RING(MI_FLUSH | MI_WRITE_DIRTY_STATE); - OUT_RING(MI_NOOP); - OUT_RING(MI_OVERLAY_FLIP | MI_OVERLAY_FLIP_CONTINUE); + BEGIN_BATCH(6); + OUT_BATCH(MI_FLUSH | MI_WRITE_DIRTY_STATE); + OUT_BATCH(MI_NOOP); + OUT_BATCH(MI_OVERLAY_FLIP | MI_OVERLAY_FLIP_CONTINUE); if (OVERLAY_NOPHYSICAL(pI830)) - OUT_RING(pI830->overlay_regs->offset); + OUT_BATCH(pI830->overlay_regs->offset); else - OUT_RING(pI830->overlay_regs->bus_addr); - OUT_RING(MI_WAIT_FOR_EVENT | MI_WAIT_FOR_OVERLAY_FLIP); - OUT_RING(MI_NOOP); - ADVANCE_LP_RING(); + OUT_BATCH(pI830->overlay_regs->bus_addr); + OUT_BATCH(MI_WAIT_FOR_EVENT | MI_WAIT_FOR_OVERLAY_FLIP); + OUT_BATCH(MI_NOOP); + ADVANCE_BATCH(); i830WaitSync(pScrn); } *pI830->overlayOn = FALSE; |