diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2013-01-11 09:52:32 -0500 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2013-01-11 09:55:54 -0500 |
commit | 102ee4a24e4c9ba0c0b65d3ca8599dc7e0216c1e (patch) | |
tree | f814d7af5cea55f57cc62b20c6aecc7dd1efa945 /src/radeon_textured_videofuncs.c | |
parent | 47689ef8b878a56ea094e21a6090b228e67d605e (diff) |
radeon/r200: program RE_WIDTH_HEIGHT properly
Values are inclusive. Mesa already sets these
correctly. Also bump EXA/Xv limits from 2047 to
2048.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Diffstat (limited to 'src/radeon_textured_videofuncs.c')
-rw-r--r-- | src/radeon_textured_videofuncs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/radeon_textured_videofuncs.c b/src/radeon_textured_videofuncs.c index cfac9022..653de44d 100644 --- a/src/radeon_textured_videofuncs.c +++ b/src/radeon_textured_videofuncs.c @@ -55,8 +55,8 @@ RADEONPrepareTexturedVideo(ScrnInfoPtr pScrn, RADEONPortPrivPtr pPriv) uint32_t dst_pitch, dst_format; uint32_t colorpitch; int pixel_shift; - int scissor_w = MIN(pPixmap->drawable.width, 2047); - int scissor_h = MIN(pPixmap->drawable.height, 2047); + int scissor_w = MIN(pPixmap->drawable.width, 2048) - 1; + int scissor_h = MIN(pPixmap->drawable.height, 2048) - 1; int ret; radeon_cs_space_reset_bos(info->cs); @@ -416,8 +416,8 @@ R200PrepareTexturedVideo(ScrnInfoPtr pScrn, RADEONPortPrivPtr pPriv) uint32_t dst_pitch, dst_format; uint32_t colorpitch; int pixel_shift; - int scissor_w = MIN(pPixmap->drawable.width, 2047); - int scissor_h = MIN(pPixmap->drawable.height, 2047); + int scissor_w = MIN(pPixmap->drawable.width, 2048) - 1; + int scissor_h = MIN(pPixmap->drawable.height, 2048) - 1; /* note: in contrast to r300, use input biasing on uv components */ const float Loff = -0.0627; float uvcosf, uvsinf; |