Teach EGL_EXT_image_dma_buf_import about DRM_FORMAT_R8 and
DRM_FORMAT_GR88 in egl_dri2.c. Then add the plumbing to i965 to import
R8 and GR88 dma_bufs as textures.

This Mesa series shouldn't land until my kernel patch lands:
    To: dri-de...@freedesktop.org
    Subject: [PATCH] drm/fourcc: Add formats R8, RG88, GR88
    Date: Wed, 8 Jul 2015 10:19:34 -0700

The Mesa patches build and run correctly, though, without the kernel
patch because all the kernel patch does is define the new formats in
drm_fourcc.h. I've duplicated the format definitions in egl_dri2.c so
that building Mesa won't require unreleased kernel headers.

This patch series lives on the tag:
    git://github.com/chadversary/mesa refs/tags/i965-drm-fourcc-r8-gr88-v01

I also sent patches for a Piglit test, which passes on Broadwell:
    Subject: [PATCH] ext_image_dma_buf: Add tests for R8 and GR88
    Date: Mon, 22 Jun 2015 06:40:14 -0700

Chad Versace (2):
  egl: Add support for DRM_FORMAT_R8, RG88, and GR88
  i965: Support importing R8 and GR88 dma_bufs

 include/GL/internal/dri_interface.h      |  9 +++++++--
 src/egl/drivers/dri2/egl_dri2.c          | 19 +++++++++++++++++++
 src/mesa/drivers/dri/i965/intel_screen.c |  6 ++++++
 3 files changed, 32 insertions(+), 2 deletions(-)

-- 
2.5.0.rc1

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to