diff options
author | Marton Balint <cus@fazekas.hu> | 2011-01-20 17:04:56 -0500 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2011-01-20 17:11:35 -0500 |
commit | f41cf83750ba9a2e0797fdb21ea9104b85ce53aa (patch) | |
tree | beb3a7eafbe23921eafcc13a2dd1a85ede04f65b | |
parent | 57fbddfc21d8c6794f378489b764cc2a0ad4a48c (diff) |
r6xx/7xx: fix Xv artifacts
bad textures size for cache flushes.
Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=22007
-rw-r--r-- | src/r600_textured_videofuncs.c | 4 |
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 */ |