summaryrefslogtreecommitdiff
path: root/src/r600_textured_videofuncs.c
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2009-02-07 10:32:01 -0500
committerAlex Deucher <alexdeucher@gmail.com>2009-02-07 10:32:01 -0500
commit8ce6c024e31f6a3f5ae6c882738b1e64ae2944a1 (patch)
tree6e9dcaaa71da75886c0c8869a966351149b68e1c /src/r600_textured_videofuncs.c
parent1b45936ae614244aa49b1a5d3c7fc39773c4f9b6 (diff)
R6xx/R7xx Xv: fix typos in cache flushing commands
Diffstat (limited to 'src/r600_textured_videofuncs.c')
-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 b1cd4f1d..5941899a 100644
--- a/src/r600_textured_videofuncs.c
+++ b/src/r600_textured_videofuncs.c
@@ -145,7 +145,7 @@ R600DisplayTexturedVideo(ScrnInfoPtr pScrn, RADEONPortPrivPtr 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],
accel_state->src_mc_addr[0]);
// Y texture
@@ -365,7 +365,7 @@ R600DisplayTexturedVideo(ScrnInfoPtr pScrn, RADEONPortPrivPtr 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);