[Mesa-dev] [PATCH 0/6] add YUYV format for dri image support

Zhao halley halley.zhao at intel.com
Thu May 31 02:23:57 PDT 2012


Intel SNB/IVB platform supports rendering YUYV buffer to overlay plane,
however YUYV is missing support from mesa/dri-image yet.
so I go ahead to add it; basing on it, libva can send YUYV buffer directly
to wayland/weston, then weston output it to overlay plane.

I notice that there are some patches from Gwenole for YUV planar texture 
support. these patches have little to do with that. because:
    YUYV is packed format, it doesn't require additional attribute like 
       buffer layout (introduced by Gwenole)
    YUYV is introduced for overlay support, no shaders for texture is required.

Zhao halley (6):
  GL: add YUYV to dri image format
  mesa intel driver:
  egl wayland: add YUYV support
  gallium egl wayland: add YUYV support
  gbm dri backend: add YUYV support
  wayland-drm: add YUYV support

 include/GL/internal/dri_interface.h                |    1 +
 src/egl/drivers/dri2/egl_dri2.c                    |   17 ++++++++++++++---
 src/egl/drivers/dri2/platform_wayland.c            |    8 +++++++-
 src/egl/wayland/wayland-drm/wayland-drm.c          |    1 +
 .../state_trackers/egl/wayland/native_drm.c        |    3 +++
 .../state_trackers/egl/wayland/native_wayland.h    |    3 ++-
 src/gbm/backends/dri/gbm_dri.c                     |    3 +++
 src/mesa/drivers/dri/intel/intel_screen.c          |    5 +++++
 src/mesa/drivers/dri/intel/intel_tex_image.c       |    3 +++
 9 files changed, 39 insertions(+), 5 deletions(-)
 mode change 100644 => 100755 include/GL/internal/dri_interface.h
 mode change 100644 => 100755 src/egl/drivers/dri2/egl_dri2.c
 mode change 100644 => 100755 src/egl/drivers/dri2/platform_wayland.c
 mode change 100644 => 100755 src/egl/wayland/wayland-drm/wayland-drm.c
 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
 mode change 100644 => 100755 src/gbm/backends/dri/gbm_dri.c
 mode change 100644 => 100755 src/mesa/drivers/dri/intel/intel_screen.c
 mode change 100644 => 100755 src/mesa/drivers/dri/intel/intel_tex_image.c

-- 
1.7.5.4



More information about the mesa-dev mailing list