anv/cmd_buffer: Generalize transition_color_buffer
[mesa.git] / src / egl / egl-symbols-check
index 5d46fed57c95505814c29e5a02c1be9d9eb11c95..ae867d04bca91f22b070928d432fe26a24039edc 100755 (executable)
@@ -1,6 +1,14 @@
-#!/bin/bash
+#!/bin/sh
+set -eu
 
-FUNCS=$(nm -D --defined-only ${1-.libs/libEGL.so} | grep -o "T .*" | cut -c 3- | while read func; do
+LIB=${1-.libs/libEGL.so}
+
+if ! [ -f "$LIB" ]
+then
+  exit 1
+fi
+
+FUNCS=$(nm -D --defined-only $LIB | grep -o "T .*" | cut -c 3- | while read func; do
 ( grep -q "^$func$" || echo $func )  <<EOF
 eglBindAPI
 eglBindTexImage
@@ -46,6 +54,8 @@ eglWaitClient
 eglWaitGL
 eglWaitNative
 eglWaitSync
+MesaGLInteropEGLQueryDeviceInfo
+MesaGLInteropEGLExportObject
 _fini
 _init
 EOF