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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]