diff options
author | Eric Engestrom <eric.engestrom@intel.com> | 2018-11-30 13:32:35 +0000 |
---|---|---|
committer | Eric Engestrom <eric.engestrom@intel.com> | 2018-12-04 18:03:13 +0000 |
commit | 816a85654526ac3f317e195aa25764b28cfccf85 (patch) | |
tree | d9927be037c4037a0e2c0aba16efa1b3874d481d | |
parent | acc32faa137f7df13d1f1b74c28a562414587e70 (diff) |
make sure 'unsupported format' test always uses an unsupported format
Instead of using the fact this one driver currently doesn't support this
one format, let's just use a format that will never be supported by
anyone.
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
-rw-r--r-- | tests/spec/ext_image_dma_buf_import/intel_unsupported_format.c | 2 | ||||
-rw-r--r-- | tests/util/piglit-framework-gl/piglit_drm_dma_buf.h | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/tests/spec/ext_image_dma_buf_import/intel_unsupported_format.c b/tests/spec/ext_image_dma_buf_import/intel_unsupported_format.c index 8373e9038..077623740 100644 --- a/tests/spec/ext_image_dma_buf_import/intel_unsupported_format.c +++ b/tests/spec/ext_image_dma_buf_import/intel_unsupported_format.c @@ -47,7 +47,7 @@ create_image(unsigned w, unsigned h, int fd, unsigned stride, unsigned offset) EGLint attr[] = { EGL_WIDTH, w, EGL_HEIGHT, h, - EGL_LINUX_DRM_FOURCC_EXT, DRM_FORMAT_RGB332, + EGL_LINUX_DRM_FOURCC_EXT, DRM_FORMAT_INVALID, EGL_DMA_BUF_PLANE0_FD_EXT, fd, EGL_DMA_BUF_PLANE0_OFFSET_EXT, offset, EGL_DMA_BUF_PLANE0_PITCH_EXT, stride, diff --git a/tests/util/piglit-framework-gl/piglit_drm_dma_buf.h b/tests/util/piglit-framework-gl/piglit_drm_dma_buf.h index 36777a835..b8a4e485d 100644 --- a/tests/util/piglit-framework-gl/piglit_drm_dma_buf.h +++ b/tests/util/piglit-framework-gl/piglit_drm_dma_buf.h @@ -40,6 +40,11 @@ #define DRM_FORMAT_GR88 fourcc_code('G', 'R', '8', '8') #endif +/* added in libdrm 2.4.95 */ +#ifndef DRM_FORMAT_INVALID +#define DRM_FORMAT_INVALID 0 +#endif + struct piglit_dma_buf { unsigned w; unsigned h; |