summaryrefslogtreecommitdiff
path: root/src/r600_textured_videofuncs.c
diff options
context:
space:
mode:
authorMarton Balint <cus@fazekas.hu>2011-01-20 17:04:56 -0500
committerAlex Deucher <alexdeucher@gmail.com>2011-01-20 17:11:35 -0500
commitf41cf83750ba9a2e0797fdb21ea9104b85ce53aa (patch)
treebeb3a7eafbe23921eafcc13a2dd1a85ede04f65b /src/r600_textured_videofuncs.c
parent57fbddfc21d8c6794f378489b764cc2a0ad4a48c (diff)
r6xx/7xx: fix Xv artifacts
bad textures size for cache flushes. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=22007
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 88073ac5..f71a61b0 100644
--- a/src/r600_textured_videofuncs.c
+++ b/src/r600_textured_videofuncs.c
@@ -310,7 +310,7 @@ R600DisplayTexturedVideo(ScrnInfoPtr pScrn, RADEONPortPrivPtr pPriv)
tex_res.base = accel_state->src_obj[0].offset + pPriv->planev_offset;
tex_res.mip_base = accel_state->src_obj[0].offset + pPriv->planev_offset;
- tex_res.size = accel_state->src_size[0] / 4;
+ tex_res.size = tex_res.pitch * (pPriv->h >> 1);
r600_set_tex_resource(pScrn, accel_state->ib, &tex_res, accel_state->src_obj[0].domain);
/* U or V sampler */
@@ -331,7 +331,7 @@ R600DisplayTexturedVideo(ScrnInfoPtr pScrn, RADEONPortPrivPtr pPriv)
tex_res.base = accel_state->src_obj[0].offset + pPriv->planeu_offset;
tex_res.mip_base = accel_state->src_obj[0].offset + pPriv->planeu_offset;
- tex_res.size = accel_state->src_size[0] / 4;
+ tex_res.size = tex_res.pitch * (pPriv->h >> 1);
r600_set_tex_resource(pScrn, accel_state->ib, &tex_res, accel_state->src_obj[0].domain);
/* UV sampler */