[Piglit] [PATCH] ext_image_dma_buf_import: Include image_common.h from sample_common.c

Michel Dänzer michel at daenzer.net
Thu May 14 19:09:46 PDT 2015

From: Michel Dänzer <michel.daenzer at amd.com>

Fixes build failure against current Mesa Git master:

.../sample_common.c.o: In function `sample_and_destroy_img':
.../sample_common.c:107: undefined reference to `eglDestroyImageKHR'
.../sample_common.c.o: In function `sample_buffer':
.../sample_common.c:128: undefined reference to `eglCreateImageKHR'
collect2: error: ld returned 1 exit status

Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>

I don't have write access to piglit Git, if you do and approve this patch,
please push it for me.

 tests/spec/ext_image_dma_buf_import/sample_common.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/spec/ext_image_dma_buf_import/sample_common.c b/tests/spec/ext_image_dma_buf_import/sample_common.c
index 102a830..51023bb 100644
--- a/tests/spec/ext_image_dma_buf_import/sample_common.c
+++ b/tests/spec/ext_image_dma_buf_import/sample_common.c
@@ -24,6 +24,7 @@
 #include <unistd.h>
 #include "sample_common.h"
+#include "image_common.h"
 static const char fs_src[] =
 	"#extension GL_OES_EGL_image_external : require\n"

More information about the Piglit mailing list