st/xorg: Update to new libkms interface but be backwards compatible
authorJakob Bornecrantz <jakob@vmware.com>
Thu, 28 Jan 2010 16:59:26 +0000 (17:59 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Thu, 28 Jan 2010 18:37:54 +0000 (18:37 +0000)
src/gallium/state_trackers/xorg/xorg_crtc.c
src/gallium/state_trackers/xorg/xorg_driver.c

index 2786558b767bc7e4d7b591203ef429ad0d9a2b21..2395d549752d29041bf892634f6db633e1f3b92d 100644 (file)
@@ -242,7 +242,11 @@ crtc_load_cursor_argb_kms(xf86CrtcPtr crtc, CARD32 * image)
        unsigned attr[8];
 
        attr[0] = KMS_BO_TYPE;
+#ifdef KMS_BO_TYPE_CURSOR_64X64_A8R8G8B8
+       attr[1] = KMS_BO_TYPE_CURSOR_64X64_A8R8G8B8;
+#else
        attr[1] = KMS_BO_TYPE_CURSOR;
+#endif
        attr[2] = KMS_WIDTH;
        attr[3] = 64;
        attr[4] = KMS_HEIGHT;
index e4ad789e9bccb2dbc26391b70ec638acb44fd1a3..f53a879a14a1e01364bdf9aa0d9de1a6201e10af 100644 (file)
@@ -1008,7 +1008,11 @@ drv_create_front_buffer_kms(ScrnInfoPtr pScrn)
     int ret;
 
     attr[0] = KMS_BO_TYPE;
+#ifdef KMS_BO_TYPE_SCANOUT_X8R8G8B8
+    attr[1] = KMS_BO_TYPE_SCANOUT_X8R8G8B8;
+#else
     attr[1] = KMS_BO_TYPE_SCANOUT;
+#endif
     attr[2] = KMS_WIDTH;
     attr[3] = pScrn->virtualX;
     attr[4] = KMS_HEIGHT;