summaryrefslogtreecommitdiff
path: root/hw/kdrive
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2005-01-20 07:28:02 +0000
committerEric Anholt <anholt@freebsd.org>2005-01-20 07:28:02 +0000
commitdbe45c71590ac319250d04a2bf37ec07cd79e42a (patch)
treeed9f4086418e369a96acb4c3f52c673b142ed3c7 /hw/kdrive
parentfc43c154943fb1d277a9cffa9a4db7e76db461bc (diff)
Use RadeonSwitchTo3D() instead of doing the WAIT_UNTIL ourselves (RST3D()
also does DC_FLUSH, which may be important).
Diffstat (limited to 'hw/kdrive')
-rw-r--r--hw/kdrive/ati/radeon_composite.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/hw/kdrive/ati/radeon_composite.c b/hw/kdrive/ati/radeon_composite.c
index 4ecac3991..2bc246661 100644
--- a/hw/kdrive/ati/radeon_composite.c
+++ b/hw/kdrive/ati/radeon_composite.c
@@ -293,9 +293,9 @@ R100PrepareComposite(int op, PicturePtr pSrcPicture, PicturePtr pMaskPicture,
is_transform[1] = FALSE;
}
- BEGIN_DMA(14);
- OUT_REG(ATI_REG_WAIT_UNTIL,
- RADEON_WAIT_HOST_IDLECLEAN | RADEON_WAIT_2D_IDLECLEAN);
+ RadeonSwitchTo3D(atis);
+
+ BEGIN_DMA(12);
/* RADEON_REG_PP_CNTL,
* RADEON_REG_RB3D_CNTL,
@@ -512,9 +512,9 @@ R200PrepareComposite(int op, PicturePtr pSrcPicture, PicturePtr pMaskPicture,
is_transform[1] = FALSE;
}
- BEGIN_DMA(22);
- OUT_REG(ATI_REG_WAIT_UNTIL,
- RADEON_WAIT_HOST_IDLECLEAN | RADEON_WAIT_2D_IDLECLEAN);
+ RadeonSwitchTo3D(atis);
+
+ BEGIN_DMA(20);
/* RADEON_REG_PP_CNTL,
* RADEON_REG_RB3D_CNTL,
@@ -713,9 +713,9 @@ RadeonPrepareTrapezoids(PicturePtr pDstPicture, PixmapPtr pDst)
if (((dst_pitch >> pixel_shift) & 0x7) != 0)
ATI_FALLBACK(("Bad destination pitch 0x%x\n", dst_pitch));
- BEGIN_DMA(10);
- OUT_REG(ATI_REG_WAIT_UNTIL,
- RADEON_WAIT_HOST_IDLECLEAN | RADEON_WAIT_2D_IDLECLEAN);
+ RadeonSwitchTo3D(atis);
+
+ BEGIN_DMA(8);
/* RADEON_REG_PP_CNTL,
* RADEON_REG_RB3D_CNTL,