[Piglit] [PATCH piglit] fix macro redefinition with libdrm>=2.4.95

Eric Engestrom eric.engestrom at intel.com
Fri Nov 30 13:53:38 UTC 2018


DRM_FORMAT_INVALID was meant to be an nonexistent format but ironically,
the name does exist now, so let's just rename it to what it really means.

Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
---
 tests/spec/ext_image_dma_buf_import/invalid_attributes.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/spec/ext_image_dma_buf_import/invalid_attributes.c b/tests/spec/ext_image_dma_buf_import/invalid_attributes.c
index e4bc78f7deaef1850412..d1f34f7eb35e30739e63 100644
--- a/tests/spec/ext_image_dma_buf_import/invalid_attributes.c
+++ b/tests/spec/ext_image_dma_buf_import/invalid_attributes.c
@@ -51,7 +51,7 @@ PIGLIT_GL_TEST_CONFIG_BEGIN
 
 PIGLIT_GL_TEST_CONFIG_END
 
-#define DRM_FORMAT_INVALID fourcc_code('F', 'O', 'O', '0')
+#define DRM_FORMAT_NONEXISTENT fourcc_code('F', 'O', 'O', '0')
 
 static bool
 test_excess_attributes(unsigned w, unsigned h, int fd, unsigned stride,
@@ -155,7 +155,7 @@ test_invalid_format(unsigned w, unsigned h, int fd, unsigned stride,
 	EGLint attr[] = {
 		EGL_WIDTH, w,
 		EGL_HEIGHT, h,
-		EGL_LINUX_DRM_FOURCC_EXT, DRM_FORMAT_INVALID,
+		EGL_LINUX_DRM_FOURCC_EXT, DRM_FORMAT_NONEXISTENT,
 		EGL_DMA_BUF_PLANE0_FD_EXT, fd,
 		EGL_DMA_BUF_PLANE0_OFFSET_EXT, offset,
 		EGL_DMA_BUF_PLANE0_PITCH_EXT, stride,
-- 
Cheers,
  Eric



More information about the Piglit mailing list