summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2009-02-07 10:34:12 -0500
committerAlex Deucher <alexdeucher@gmail.com>2009-02-07 10:34:12 -0500
commitcb78b48029e9dceaaa47e7e3a2a94c5471c0412c (patch)
tree43977d486cfd90684c9937c373b92abbe8e2a436
parent1377446af88f875fc878b5ab813ce1dd6aeeff4a (diff)
R6xx/R7xx Xv: fix typos in cache flushing
-rw-r--r--src/r600_textured_videofuncs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/r600_textured_videofuncs.c b/src/r600_textured_videofuncs.c
index fe5cd27..edc6f9e 100644
--- a/src/r600_textured_videofuncs.c
+++ b/src/r600_textured_videofuncs.c
@@ -152,7 +152,7 @@ R600DisplayTexturedVideo(ScrnInfoPtr pScrn, struct RHDPortPriv *pPriv)
accel_state->src_size[0] = exaGetPixmapPitch(pPixmap) * pPriv->w;
/* flush texture cache */
- cp_set_surface_sync(pScrn, accel_state->ib, TC_ACTION_ENA_bit, 512,
+ cp_set_surface_sync(pScrn, accel_state->ib, TC_ACTION_ENA_bit, accel_state->src_size[0],
pPriv->BufferOffset + rhdPtr->FbIntAddress);
// Y texture
@@ -374,7 +374,7 @@ R600DisplayTexturedVideo(ScrnInfoPtr pScrn, struct RHDPortPriv *pPriv)
wait_3d_idle_clean(pScrn, accel_state->ib);
/* sync destination surface */
- cp_set_surface_sync(pScrn, accel_state->ib, (CB_ACTION_ENA_bit, CB0_DEST_BASE_ENA_bit),
+ cp_set_surface_sync(pScrn, accel_state->ib, (CB_ACTION_ENA_bit | CB0_DEST_BASE_ENA_bit),
accel_state->dst_size, accel_state->dst_mc_addr);
R600CPFlushIndirect(pScrn, accel_state->ib);