summaryrefslogtreecommitdiff
path: root/src/radeon_textured_video.c
diff options
context:
space:
mode:
authorKusanagi Kouichi <slash@ac.auone-net.jp>2009-12-02 01:36:37 -0500
committerAlex Deucher <alexdeucher@gmail.com>2009-12-02 01:36:37 -0500
commitf03450796d2e9247a1228c4e2abb1dfad7aecddf (patch)
treed56324fcff38d5d747b19bdad552f692a85106b6 /src/radeon_textured_video.c
parentefbc2c80ab02879edf3b7b3d65b16c45ddce5017 (diff)
radeon: Lift hardcoded limit from RADEONQueryImageAttributes
The dimension of an XvImage is limited to 2048 x 2048 even if an adaptor supports larger image. XvCreateImage and XvShmCreateImage lower the width or height of an image. XvPutImage and XvShmPutImage return BadValue. The cause is that 2048 is hardcoded in RADEONQueryImageAttributes.
Diffstat (limited to 'src/radeon_textured_video.c')
-rw-r--r--src/radeon_textured_video.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/radeon_textured_video.c b/src/radeon_textured_video.c
index 7396f6f0..2e5d7637 100644
--- a/src/radeon_textured_video.c
+++ b/src/radeon_textured_video.c
@@ -863,6 +863,9 @@ RADEONSetupImageTexturedVideo(ScreenPtr pScreen)
if (IS_R500_3D || IS_R300_3D)
radeon_load_bicubic_texture(pScrn);
+ info->xv_max_width = adapt->pEncodings->width;
+ info->xv_max_height = adapt->pEncodings->height;
+
return adapt;
}