[Spice-devel] [PATCH xf86-qxl 25/27] Bypass rrcrtc.c screen size bounds check

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


---
 src/qxl_driver.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/qxl_driver.c b/src/qxl_driver.c
index 9039e50..42bcc13 100644
--- a/src/qxl_driver.c
+++ b/src/qxl_driver.c
@@ -40,6 +40,7 @@
 #include <stdlib.h>
 
 #include <xf86Crtc.h>
+#include <xf86RandR12.h>
 
 #include "mspace.h"
 
@@ -1555,6 +1556,11 @@ qxl_screen_init(SCREEN_INIT_ARGS_DECL)
         return FALSE;
     CHECK_POINT();
 
+    /* fake transform support, to allow agent to switch crtc mode */
+    /* without X doing checks, see rrcrtc.c "Check screen size */
+    /* bounds" */
+    xf86RandR12SetTransformSupport(pScreen, TRUE);
+
     return TRUE;
 
  out:
-- 
1.7.10.4



More information about the Spice-devel mailing list