diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2011-01-20 17:07:32 -0500 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2011-01-20 17:11:41 -0500 |
commit | 0a03f03a65aad925ba2d9c76b1d3356184607bf9 (patch) | |
tree | efc7420d712e0f38506ee962518c923d26b4f2ef /src/evergreen_textured_videofuncs.c | |
parent | f41cf83750ba9a2e0797fdb21ea9104b85ce53aa (diff) |
evergreen/ni: fix Xv artifacts
Port of the 6xx/7xx fix to evergreen. Bad texture size
for texture cache flush.
Diffstat (limited to 'src/evergreen_textured_videofuncs.c')
-rw-r--r-- | src/evergreen_textured_videofuncs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/evergreen_textured_videofuncs.c b/src/evergreen_textured_videofuncs.c index 428876fc..aa3c5271 100644 --- a/src/evergreen_textured_videofuncs.c +++ b/src/evergreen_textured_videofuncs.c @@ -295,7 +295,7 @@ EVERGREENDisplayTexturedVideo(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); evergreen_set_tex_resource(pScrn, &tex_res, accel_state->src_obj[0].domain); /* U or V sampler */ @@ -316,7 +316,7 @@ EVERGREENDisplayTexturedVideo(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); evergreen_set_tex_resource(pScrn, &tex_res, accel_state->src_obj[0].domain); /* UV sampler */ |