summaryrefslogtreecommitdiff
path: root/src/i830_video.c
diff options
context:
space:
mode:
authorSimon Farnsworth <simon.farnsworth@onelan.co.uk>2009-06-18 12:33:47 +0100
committerKeith Packard <keithp@keithp.com>2009-07-07 15:55:48 -0700
commit0402f4f331148084552bd3963dbcb3fb900be8ea (patch)
tree016904774911134e938d6c3d77dd7738670c7588 /src/i830_video.c
parenta66357832388ba9db21a4b3bf8311d9d1f1ab308 (diff)
Raise XV limit to 2048x2048 to match hardware limits.
The bigrequests limit isn't present in current X servers (tested using textured video on a 965 with both image and window at 2048x2048 on a 1920x1200 display, and image at 2048x2048, window at 1024x1024). Remove the artificial limit, enabling full-screen HD video when rotated.
Diffstat (limited to 'src/i830_video.c')
-rw-r--r--src/i830_video.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/i830_video.c b/src/i830_video.c
index 573d6812..4bba902e 100644
--- a/src/i830_video.c
+++ b/src/i830_video.c
@@ -112,19 +112,11 @@ static Atom xvSyncToVblank;
/* Limits for the overlay/textured video source sizes. The documented hardware
* limits are 2048x2048 or better for overlay and both of our textured video
- * implementations. However, we run into the bigrequests limit of (currently)
- * 4MB, which even the planar format's 2048*2048*1.5 bytes is larger than.
- * Conveniently, the HD resolution, even in packed format, takes
- * (1920*1088*2) bytes, which is just shy of 4MB. Additionally, on the 830
- * and 845, larger sizes resulted in the card hanging, so we keep the limits
- * lower there.
- *
- * While the HD resolution is actually 1920x1080, we increase our advertised
- * size to 1088 because some software wants to send an image aligned to
- * 16-pixel boundaries.
+ * implementations. Additionally, on the 830 and 845, larger sizes resulted in
+ * the card hanging, so we keep the limits lower there.
*/
-#define IMAGE_MAX_WIDTH 1920
-#define IMAGE_MAX_HEIGHT 1088
+#define IMAGE_MAX_WIDTH 2048
+#define IMAGE_MAX_HEIGHT 2048
#define IMAGE_MAX_WIDTH_LEGACY 1024
#define IMAGE_MAX_HEIGHT_LEGACY 1088