[Piglit] [PATCH] util/egl: Fix build for old EGL headers
Chad Versace
chad.versace at linux.intel.com
Fri Apr 18 11:15:40 PDT 2014
I broke the build for many people in commit
cf53b461387952b899b4df6ad4164444f8dee670. In that commit,
piglit-util-egl.c and egl_khr_fence_sync.c rely on a very recent
eglext.h to provide the EGL_PLATFORM_* enums.
Fix the build by defining the required enums in
piglit-util-egl.h.
When Piglit gets proper EGL dispatch, problems like this will disappear.
Cc: Ilia Mirkin <imirkin at alum.mit.edu>
Signed-off-by: Chad Versace <chad.versace at linux.intel.com>
---
tests/util/piglit-util-egl.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/util/piglit-util-egl.h b/tests/util/piglit-util-egl.h
index 4a6eecf..60fb199 100644
--- a/tests/util/piglit-util-egl.h
+++ b/tests/util/piglit-util-egl.h
@@ -34,6 +34,10 @@
extern "C" {
#endif
+#define EGL_PLATFORM_WAYLAND_EXT 0x31D8
+#define EGL_PLATFORM_X11_EXT 0x31D5
+#define EGL_PLATFORM_GBM_MESA 0x31D7
+
/**
* \brief Convert an EGL error to a string.
*
--
1.9.0
More information about the Piglit
mailing list