[Mesa-dev] [PATCH 3/4] gbm: Removed usage of gbm_bo_format from DRI backend.
John Kåre Alsaker
john.kare.alsaker at gmail.com
Sun Sep 9 09:46:30 PDT 2012
---
src/gbm/backends/dri/gbm_dri.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c
index d8b1cc7..84c6de3 100644
--- a/src/gbm/backends/dri/gbm_dri.c
+++ b/src/gbm/backends/dri/gbm_dri.c
@@ -277,10 +277,8 @@ gbm_dri_is_format_supported(struct gbm_device *gbm,
uint32_t usage)
{
switch (format) {
- case GBM_BO_FORMAT_XRGB8888:
case GBM_FORMAT_XRGB8888:
break;
- case GBM_BO_FORMAT_ARGB8888:
case GBM_FORMAT_ARGB8888:
if (usage & GBM_BO_USE_SCANOUT)
return 0;
@@ -494,11 +492,9 @@ gbm_dri_bo_create(struct gbm_device *gbm,
dri_format =__DRI_IMAGE_FORMAT_RGB565;
break;
case GBM_FORMAT_XRGB8888:
- case GBM_BO_FORMAT_XRGB8888:
dri_format = __DRI_IMAGE_FORMAT_XRGB8888;
break;
case GBM_FORMAT_ARGB8888:
- case GBM_BO_FORMAT_ARGB8888:
dri_format = __DRI_IMAGE_FORMAT_ARGB8888;
break;
case GBM_FORMAT_ABGR8888:
--
1.7.12
More information about the mesa-dev
mailing list