[Mesa-dev] [PATCH 06/15] gbm: Support GBM_FORMAT_XBGR8888
Christopher James Halse Rogers
christopher.halse.rogers at canonical.com
Sat Jul 20 04:40:38 PDT 2013
---
src/gbm/backends/dri/gbm_dri.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c
index a3a0530..07d7145 100644
--- a/src/gbm/backends/dri/gbm_dri.c
+++ b/src/gbm/backends/dri/gbm_dri.c
@@ -348,6 +348,9 @@ gbm_dri_to_gbm_format(uint32_t dri_format)
case __DRI_IMAGE_FORMAT_ABGR8888:
ret = GBM_FORMAT_ABGR8888;
break;
+ case __DRI_IMAGE_FORMAT_XBGR8888:
+ ret = GBM_FORMAT_XBGR8888;
+ break;
default:
ret = 0;
break;
@@ -547,6 +550,9 @@ gbm_dri_bo_create(struct gbm_device *gbm,
case GBM_FORMAT_ABGR8888:
dri_format = __DRI_IMAGE_FORMAT_ABGR8888;
break;
+ case GBM_FORMAT_XBGR8888:
+ dri_format = __DRI_IMAGE_FORMAT_XBGR8888;
+ break;
default:
return NULL;
}
--
1.8.3.2
More information about the mesa-dev
mailing list