[Spice-devel] [PATCH xf86-video-qxl] src/qxl_driver: use the new dixScreenSpecificPrivatesSize

Alon Levy alevy at redhat.com
Thu Aug 23 08:28:03 PDT 2012


xserver introduces a new screen specific privates infrastructure, moving
the PRIVATE_PIXBUF over there, breaking qxl that was using the wrong
dixPrivatesSize to access it - there is a new array of screen specific/not
flags, and PRIVATE_PIXBUF is screen specific.

xorg-xserver commit: 9d457f9c55f12106ba44c1c9db59d14f978f0ae8

This fix breaks backward compat. The next release will only work with
xorg-xserver >= 1.12.99.901

RHBZ: 844463
---
 src/qxl_driver.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/qxl_driver.c b/src/qxl_driver.c
index d6edb3a..7116d8c 100644
--- a/src/qxl_driver.c
+++ b/src/qxl_driver.c
@@ -1529,8 +1529,9 @@ qxl_screen_init(SCREEN_INIT_ARGS_DECL)
     DamageSetup(pScreen);
 
     /* We need to set totalPixmapSize after setup_uxa and Damage,
-       as the privatessize is not computed correctly until then */
-    pScreen->totalPixmapSize = BitmapBytePad((sizeof(PixmapRec) + dixPrivatesSize(PRIVATE_PIXMAP) ) * 8);
+       as the privatssize is not computed correctly until then */
+    pScreen->totalPixmapSize = BitmapBytePad((sizeof(PixmapRec) +
+			    dixScreenSpecificPrivatesSize(pScreen, PRIVATE_PIXMAP) ) * 8);
 
     miDCInitialize(pScreen, xf86GetPointerScreenFuncs());
     if (!miCreateDefColormap(pScreen))
-- 
1.7.11.2



More information about the Spice-devel mailing list