[Spice-devel] [PATCH xf86-qxl 15/27] qxl_driver: qxl_init_randr: limit width/height to 8192, real check done on randr screen resize callback

Marc-André Lureau marcandre.lureau at gmail.com
Mon Jul 16 08:38:39 PDT 2012


From: Alon Levy <alevy at redhat.com>

---
 src/qxl_driver.c |   20 ++------------------
 1 file changed, 2 insertions(+), 18 deletions(-)

diff --git a/src/qxl_driver.c b/src/qxl_driver.c
index a24932f..f792d07 100644
--- a/src/qxl_driver.c
+++ b/src/qxl_driver.c
@@ -1775,28 +1775,12 @@ qxl_init_randr(ScrnInfoPtr pScrn, qxl_screen_t *qxl)
     qxl_crtc_private *qxl_crtc;
     int i;
     xf86OutputPtr output;
-    int maxWidth;
-    int maxHeight;
-
-    /* TODO: Hack */
-    switch (qxl->num_heads) {
-    case 1:
-        maxWidth = 1024;
-        maxHeight = 768;
-        break;
-    case 2:
-        maxWidth = 2048;
-        maxHeight = 1024;
-    default:
-        maxWidth = (qxl->num_heads > 4 ? 4 : qxl->num_heads) * 1280;
-        maxHeight = 1024;
-    }
 
     xf86CrtcConfigInit(pScrn, &qxl_xf86crtc_config_funcs);
 
-    /* This is actually redundant, it's overwritten by a later call via
+    /* CHECKME: This is actually redundant, it's overwritten by a later call via
      * xf86InitialConfiguration */
-    xf86CrtcSetSizeRange(pScrn, 320, 200, maxWidth, maxHeight);
+    xf86CrtcSetSizeRange(pScrn, 320, 200, 8192, 8192);
 
     qxl->crtcs = xnfcalloc(sizeof(xf86CrtcPtr), qxl->num_heads);
     qxl->outputs = xnfcalloc(sizeof(xf86OutputPtr), qxl->num_heads);
-- 
1.7.10.4



More information about the Spice-devel mailing list