[Mesa-dev] [PATCH 0/5] add wayland-drm test with gbm/intel-driver update

Zhao Halley halley.zhao at intel.com
Tue Jul 17 00:14:31 PDT 2012


I had tried to add YUYV support to dri image(to support overlay), 
however Kristian enabled YUYV as a special planar YUV for wayland 
(two planes which are overlaped).
so I try to follow it and pick up the useful part in my previous patches.
    - add tiling support for bo update (from user data)
    - add shared_handle (global region name) in gbm
    - add YUYV support in gbm
    - test case to render XRGB or YUYV buffer to weston

my understanding of current YUV buffer support in mesa is: it can interpret a YUV buffer, 
not how to create such buffer. it make me a little nervous to add YUYV to 
gbm since there is no such format in dri image yet (though there is WL_DRM_FORMAT_YUYV
for wayland buffer); I just try to use __DRI_IMAGE_FORMAT_GR88 instead to make sure it
create buffer with same size.
so, one point I want to seek your comments are:
should we consider YUYV buffer allocation in mesa/gbm?
should we still need a YUYV format for dri image?

thanks.

Zhao Halley (5):
  intel driver: dri image write update
  gbm: add shared_handle(drm buffer region name)
  gbm dri backend: add YUYV support
  wayland: add YUYV to wayland-drm
  test: test case drm-test-client in src/egl/wayland/wayland-drm

 src/egl/wayland/wayland-drm/Makefile.am       |   16 +-
 src/egl/wayland/wayland-drm/drm-test-client.c |  478 +++++++++++++++++++++++++
 src/egl/wayland/wayland-drm/wayland-drm.c     |    3 +-
 src/gbm/backends/dri/gbm_dri.c                |   26 ++
 src/gbm/main/gbm.c                            |   18 +
 src/gbm/main/gbm.h                            |    8 +-
 src/gbm/main/gbmint.h                         |    2 +
 src/mesa/drivers/dri/intel/intel_screen.c     |   17 +-
 8 files changed, 563 insertions(+), 5 deletions(-)
 mode change 100644 => 100755 src/egl/wayland/wayland-drm/Makefile.am
 create mode 100755 src/egl/wayland/wayland-drm/drm-test-client.c
 mode change 100644 => 100755 src/egl/wayland/wayland-drm/wayland-drm.c
 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

-- 
1.7.5.4



More information about the mesa-dev mailing list