diff options
-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; |