summaryrefslogtreecommitdiff
path: root/src/rhd_video.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rhd_video.c')
-rw-r--r--src/rhd_video.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rhd_video.c b/src/rhd_video.c
index 383f926..76ccb39 100644
--- a/src/rhd_video.c
+++ b/src/rhd_video.c
@@ -347,6 +347,8 @@ R5xxXvCopyPackedDMA(RHDPtr rhdPtr, CARD8 *src, CARD8 *dst,
CARD16 y = 0, dwords;
CARD16 hpass = ((CS->Size - 10) * 4) / srcPitch;
+ R5xxEngineWaitIdle3D(rhdPtr->CS);
+
while (h) {
if (h < hpass)
hpass = h;
@@ -478,6 +480,8 @@ R5xxXvCopyPlanarDMA(RHDPtr rhdPtr, CARD8 *src1, CARD8 *src2, CARD8 *src3,
R5XX_GMC_CLR_CMP_CNTL_DIS | R5XX_GMC_WR_MSK_DIS;
CARD16 y = 0, dwords;
+ R5xxEngineWaitIdle3D(rhdPtr->CS);
+
while (h) {
if (h < hpass)
hpass = h;