gbm: Add support for gbm bos and surfaces using GBM_FORMAT_ARGB2101010
authorKristian Høgsberg <krh@bitplanet.net>
Sun, 15 Sep 2013 06:32:44 +0000 (23:32 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 16 Oct 2013 05:07:52 +0000 (22:07 -0700)
We can now add GBM support for the 10 bit/channel formats which lets us
create a gbm surface that we can use with KMS for display hardware that
support the format.

Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
src/gbm/backends/dri/gbm_dri.c

index 24ed2f1c6ab2bc5c18a4692239a7887e9cab9db7..661306c9f4400f344941cb834ab83f2a244895f7 100644 (file)
@@ -551,6 +551,12 @@ gbm_dri_bo_create(struct gbm_device *gbm,
    case GBM_FORMAT_ABGR8888:
       dri_format = __DRI_IMAGE_FORMAT_ABGR8888;
       break;
+   case GBM_FORMAT_ARGB2101010:
+      dri_format = __DRI_IMAGE_FORMAT_ARGB2101010;
+      break;
+   case GBM_FORMAT_XRGB2101010:
+      dri_format = __DRI_IMAGE_FORMAT_XRGB2101010;
+      break;
    default:
       return NULL;
    }