[Mesa-dev] [PATCH 5/9 v2] gbm dri backend: add YUYV support
Zhao Halley
halley.zhao at intel.com
Tue Jun 5 10:08:48 CEST 2012
---
src/gbm/backends/dri/gbm_dri.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
mode change 100644 => 100755 src/gbm/backends/dri/gbm_dri.c
diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c
old mode 100644
new mode 100755
index e5ddfb6..32cde66
--- a/src/gbm/backends/dri/gbm_dri.c
+++ b/src/gbm/backends/dri/gbm_dri.c
@@ -331,6 +331,9 @@ gbm_dri_to_gbm_format(uint32_t dri_format)
case __DRI_IMAGE_FORMAT_ABGR8888:
ret = GBM_FORMAT_ABGR8888;
break;
+ case __DRI_IMAGE_FORMAT_YUYV:
+ ret = GBM_FORMAT_YUYV;
+ break;
default:
ret = 0;
break;
@@ -428,6 +431,9 @@ gbm_dri_bo_create(struct gbm_device *gbm,
case GBM_FORMAT_ABGR8888:
dri_format = __DRI_IMAGE_FORMAT_ABGR8888;
break;
+ case GBM_FORMAT_YUYV:
+ dri_format = __DRI_IMAGE_FORMAT_YUYV;
+ break;
default:
return NULL;
}
--
1.7.5.4
More information about the mesa-dev
mailing list