[Piglit] [v4] Tests for EXT_image_dma_buf_import

Topi Pohjolainen topi.pohjolainen at intel.com
Wed May 1 23:56:02 PDT 2013


Here are some tests for the dma buffer importing. These are mostly
things specifically listed down in the spec itself regarding
attributes and their values. This version two adds three additional
tests for sampling packed RGB, but testing of more complex planar
(YUV) formats is left until one has the sampling support in place
provided by the image external extension.

I augmented the framework to provide platform independent interface
for creating and releasing the target buffers. I hope to re-use the
logic for the external image testing later on.

v2-v4:
   - clarifications on closing the buffers
   - added tests sampling RGB formatted buffers
   - check for EGL extensions, not for GL (added a utility for this)

Topi Pohjolainen (4):
  util: egl: support for skipping unsupported extension tests
  framework: hardware independent interface for dma buffers
  framework: support for creating dma buffers through libdrm
  tests: spec: tests for EXT_image_dma_buf_import

 tests/spec/CMakeLists.txt                          |   1 +
 .../ext_image_dma_buf_import/CMakeLists.gles1.txt  |  20 ++
 .../ext_image_dma_buf_import/CMakeLists.gles2.txt  |  16 ++
 tests/spec/ext_image_dma_buf_import/CMakeLists.txt |   1 +
 tests/spec/ext_image_dma_buf_import/close_buffer.c | 120 +++++++++
 .../spec/ext_image_dma_buf_import/create_yuv420.c  | 157 +++++++++++
 .../create_yuv420_same_fd.c                        | 138 ++++++++++
 .../ext_image_dma_buf_import/invalid_attributes.c  | 290 +++++++++++++++++++++
 .../spec/ext_image_dma_buf_import/invalid_hints.c  | 145 +++++++++++
 .../ext_image_dma_buf_import/missing_attributes.c  | 186 +++++++++++++
 .../ext_image_dma_buf_import/sample_argb8888.c     | 220 ++++++++++++++++
 .../sample_argb8888_level_zero_only.c              | 218 ++++++++++++++++
 .../ext_image_dma_buf_import/sample_xrgb8888.c     | 221 ++++++++++++++++
 tests/util/CMakeLists.txt                          |  29 +++
 tests/util/piglit-framework-gl.c                   |  24 ++
 tests/util/piglit-framework-gl.h                   |  21 ++
 .../util/piglit-framework-gl/piglit_drm_dma_buf.c  | 220 ++++++++++++++++
 .../util/piglit-framework-gl/piglit_drm_dma_buf.h  |  37 +++
 .../piglit-framework-gl/piglit_gbm_framework.c     |   5 +
 .../util/piglit-framework-gl/piglit_gl_framework.h |   9 +
 .../piglit-framework-gl/piglit_x11_framework.c     |   5 +
 tests/util/piglit-util-egl.c                       |   9 +
 tests/util/piglit-util-egl.h                       |   5 +
 23 files changed, 2097 insertions(+)
 create mode 100644 tests/spec/ext_image_dma_buf_import/CMakeLists.gles1.txt
 create mode 100644 tests/spec/ext_image_dma_buf_import/CMakeLists.gles2.txt
 create mode 100644 tests/spec/ext_image_dma_buf_import/CMakeLists.txt
 create mode 100644 tests/spec/ext_image_dma_buf_import/close_buffer.c
 create mode 100644 tests/spec/ext_image_dma_buf_import/create_yuv420.c
 create mode 100644 tests/spec/ext_image_dma_buf_import/create_yuv420_same_fd.c
 create mode 100644 tests/spec/ext_image_dma_buf_import/invalid_attributes.c
 create mode 100644 tests/spec/ext_image_dma_buf_import/invalid_hints.c
 create mode 100644 tests/spec/ext_image_dma_buf_import/missing_attributes.c
 create mode 100644 tests/spec/ext_image_dma_buf_import/sample_argb8888.c
 create mode 100644 tests/spec/ext_image_dma_buf_import/sample_argb8888_level_zero_only.c
 create mode 100644 tests/spec/ext_image_dma_buf_import/sample_xrgb8888.c
 create mode 100644 tests/util/piglit-framework-gl/piglit_drm_dma_buf.c
 create mode 100644 tests/util/piglit-framework-gl/piglit_drm_dma_buf.h

-- 
1.8.1.2



More information about the Piglit mailing list