[Mesa-dev] [PATCH 4/6] gallium egl wayland: add YUYV support
Zhao halley
halley.zhao at intel.com
Thu May 31 02:24:01 PDT 2012
---
.../state_trackers/egl/wayland/native_drm.c | 3 +++
.../state_trackers/egl/wayland/native_wayland.h | 3 ++-
2 files changed, 5 insertions(+), 1 deletions(-)
mode change 100644 => 100755 src/gallium/state_trackers/egl/wayland/native_drm.c
mode change 100644 => 100755 src/gallium/state_trackers/egl/wayland/native_wayland.h
diff --git a/src/gallium/state_trackers/egl/wayland/native_drm.c b/src/gallium/state_trackers/egl/wayland/native_drm.c
old mode 100644
new mode 100755
index e3bd628..f2d2e74
--- a/src/gallium/state_trackers/egl/wayland/native_drm.c
+++ b/src/gallium/state_trackers/egl/wayland/native_drm.c
@@ -164,6 +164,9 @@ drm_handle_format(void *data, struct wl_drm *drm, uint32_t format)
case WL_DRM_FORMAT_XRGB8888:
drmdpy->base.formats |= HAS_XRGB8888;
break;
+ case WL_DRM_FORMAT_YUYV:
+ drmdpy->base.formats |= HAS_YUYV;
+ break;
}
}
diff --git a/src/gallium/state_trackers/egl/wayland/native_wayland.h b/src/gallium/state_trackers/egl/wayland/native_wayland.h
old mode 100644
new mode 100755
index e6a914f..bd26bf0
--- a/src/gallium/state_trackers/egl/wayland/native_wayland.h
+++ b/src/gallium/state_trackers/egl/wayland/native_wayland.h
@@ -38,7 +38,8 @@ struct wayland_surface;
enum wayland_format_flag {
HAS_ARGB8888 = (1 << 0),
- HAS_XRGB8888 = (1 << 1)
+ HAS_XRGB8888 = (1 << 1),
+ HAS_YUYV = (1 << 2)
};
struct wayland_display {
--
1.7.5.4
More information about the mesa-dev
mailing list