[Piglit] Tests for EXT_image_dma_buf_import

Topi Pohjolainen topi.pohjolainen at intel.com
Tue Apr 16 03:45:44 PDT 2013


Here are some basic tests for the dma buffer importing. These are
things specifically listed down in the spec itself. More functional
testing using the contents of the buffers cannot be done without
the external image texture support allowing one to sample the
buffers.

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.

Topi Pohjolainen (3):
  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  |  19 ++
 tests/spec/ext_image_dma_buf_import/CMakeLists.txt |   1 +
 tests/spec/ext_image_dma_buf_import/close_buffer.c | 116 ++++++++++
 .../spec/ext_image_dma_buf_import/create_yuv420.c  | 145 ++++++++++++
 .../ext_image_dma_buf_import/invalid_attributes.c  | 255 +++++++++++++++++++++
 .../spec/ext_image_dma_buf_import/invalid_hints.c  | 144 ++++++++++++
 .../ext_image_dma_buf_import/missing_attributes.c  | 182 +++++++++++++++
 tests/util/CMakeLists.txt                          |  47 ++++
 tests/util/piglit-framework-gl.c                   |  23 ++
 tests/util/piglit-framework-gl.h                   |  18 ++
 .../util/piglit-framework-gl/piglit_drm_dma_buf.c  | 228 ++++++++++++++++++
 .../util/piglit-framework-gl/piglit_drm_dma_buf.h  |  35 +++
 .../util/piglit-framework-gl/piglit_gl_framework.h |   9 +
 .../piglit-framework-gl/piglit_x11_framework.c     |   5 +
 15 files changed, 1228 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.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/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/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