Module: Mesa
Branch: master
Commit: d25dea0c688cc05f08b4ae32545e9a3bd5b33be0
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d25dea0c688cc05f08b4ae32545e9a3bd5b33be0

Author: Eric Engestrom <e...@engestrom.ch>
Date:   Tue Feb 21 23:56:51 2017 +0000

egl: make sure entrypoints list is always sorted

Starting with the next commit, badly sorting this list will break the
eglGetProcAddress().

Signed-off-by: Eric Engestrom <e...@engestrom.ch>
Reviewed-by: Emil Velikov <emil.veli...@collabora.com>

---

 src/egl/Makefile.am          | 3 ++-
 src/egl/egl-entrypoint-check | 5 +++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/egl/Makefile.am b/src/egl/Makefile.am
index d36a786..3477f79 100644
--- a/src/egl/Makefile.am
+++ b/src/egl/Makefile.am
@@ -126,7 +126,8 @@ egl_HEADERS = \
        $(top_srcdir)/include/EGL/eglmesaext.h \
        $(top_srcdir)/include/EGL/eglplatform.h
 
-TESTS = egl-symbols-check
+TESTS = egl-symbols-check \
+       egl-entrypoint-check
 
 EXTRA_DIST = \
        $(TESTS) \
diff --git a/src/egl/egl-entrypoint-check b/src/egl/egl-entrypoint-check
new file mode 100755
index 0000000..ec33d8e
--- /dev/null
+++ b/src/egl/egl-entrypoint-check
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+entrypoints=$(grep EGL_ENTRYPOINT "$srcdir"/main/eglentrypoint.h)
+sorted=$(sort <<< "$entrypoints")
+test "$entrypoints" = "$sorted"

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to