[Mesa-dev] [PATCH 0/9 v2] Add YUYV format support of dri image

Zhao Halley halley.zhao at intel.com
Tue Jun 5 10:08:43 CEST 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.

update:
    - set internal_format to GL_YCBCR_MESA
    - improve gbm/intel-driver to support YUYV bo generation, 
      add handle2 (intel buffer name) in gbm
      buffer data update (intel_image_write with tiling support)
    - update test case to depend on gbm instead of intel driver directly

Zhao Halley (9):
  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
  gbm: add handle2(buffer region name)
  intel driver: add tiling support for intel_image_write()             
         all drm image are supported for write
  test: test case for wayland-drm in tests/wayland-drm

 configure.ac                                       |    4 +-
 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          |    3 +
 .../state_trackers/egl/wayland/native_drm.c        |    3 +
 .../state_trackers/egl/wayland/native_wayland.h    |    3 +-
 src/gbm/backends/dri/gbm_dri.c                     |   12 +-
 src/gbm/main/gbm.c                                 |   14 +
 src/gbm/main/gbm.h                                 |    3 +
 src/gbm/main/gbmint.h                              |    1 +
 src/mesa/drivers/dri/intel/intel_screen.c          |   27 ++-
 src/mesa/drivers/dri/intel/intel_tex_image.c       |    6 +
 tests/Makefile.am                                  |    2 +-
 tests/wayland-drm/Makefile.am                      |   12 +
 tests/wayland-drm/wayland-drm-test.c               |  456 ++++++++++++++++++++
 16 files changed, 562 insertions(+), 10 deletions(-)
 mode change 100644 => 100755 configure.ac
 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/gbm/main/gbm.c
 mode change 100644 => 100755 src/gbm/main/gbm.h
 mode change 100644 => 100755 src/gbm/main/gbmint.h
 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
 mode change 100644 => 100755 tests/Makefile.am
 create mode 100755 tests/wayland-drm/Makefile.am
 create mode 100755 tests/wayland-drm/wayland-drm-test.c

-- 
1.7.5.4



More information about the mesa-dev mailing list