st/xorg: Update to new libkms interface but be backwards compatible

This commit is contained in:
Jakob Bornecrantz
2010-01-28 17:59:26 +01:00
parent 32e6043150
commit c75e238434
2 changed files with 8 additions and 0 deletions

View 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;

View 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;