Re-sending to devel list.
-------- Original Message --------
Subject: [PATCH] xf86-video-dummy allow up to 32767x32767
Date: Wed, 13 Apr 2011 19:41:23 +0700
From: Antoine Martin <[email protected]>
To: Adam Jackson <[email protected]>, "[email protected]"
<[email protected]>
Hi Adam,
Can you please apply this patch please?
Re-sending as a separate thread with patch in "git format-patch".
I have tested this up to 16384x8192, higher resolutions make xtiming
spew out garbage (integer overflow?).
Thanks
Antoine
From 24ba77d173273159d6295f8bcd8ddddd15a26eab Mon Sep 17 00:00:00 2001
From: Antoine Martin <[email protected]>
Date: Wed, 13 Apr 2011 19:30:26 +0700
Subject: [PATCH] Constifies and increases the maximum size allowed for dummy
screens to 32767x32767
Signed-off-by: Antoine Martin <[email protected]>
Tested-by: Antoine Martin <[email protected]>
---
src/dummy_driver.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/dummy_driver.c b/src/dummy_driver.c
index 804e41e..305bd3c 100644
--- a/src/dummy_driver.c
+++ b/src/dummy_driver.c
@@ -85,6 +85,9 @@ static Bool dummyDriverFunc(ScrnInfoPtr pScrn,
xorgDriverFuncOp op,
#define DUMMY_MINOR_VERSION PACKAGE_VERSION_MINOR
#define DUMMY_PATCHLEVEL PACKAGE_VERSION_PATCHLEVEL
+#define DUMMY_MAX_WIDTH 32767
+#define DUMMY_MAX_HEIGHT 32767
+
/*
* This is intentionally screen-independent. It indicates the binding
* choice made in the first PreInit.
@@ -402,8 +405,8 @@ DUMMYPreInit(ScrnInfoPtr pScrn, int flags)
int apertureSize = (pScrn->videoRam * 1024);
i = xf86ValidateModes(pScrn, pScrn->monitor->Modes,
pScrn->display->modes, clockRanges,
- NULL, 256, 2048,(8 * pScrn->bitsPerPixel),
- 128, 2048, pScrn->display->virtualX,
+ NULL, 256, DUMMY_MAX_WIDTH,(8 *
pScrn->bitsPerPixel),
+ 128, DUMMY_MAX_HEIGHT, pScrn->display->virtualX,
pScrn->display->virtualY, apertureSize,
LOOKUP_BEST_REFRESH);
--
1.7.4.2
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel