From: Matt Turner Date: Tue, 12 Mar 2013 19:36:06 +0000 (-0700) Subject: gles1: Add an ABI-check test X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=569bd281c1f5c3b64f4caab2c76611dfa2e6948c;p=mesa.git gles1: Add an ABI-check test Checks that no functions are exported that are not part of the ABI. Note that currently we are exporting functions that are aliased to functions that are part of the ABI. They shouldn't be exported, but the XML descriptions don't adequately describe this case. --- diff --git a/src/mapi/es1api/ABI-check b/src/mapi/es1api/ABI-check new file mode 100755 index 00000000000..0e31f43324f --- /dev/null +++ b/src/mapi/es1api/ABI-check @@ -0,0 +1,254 @@ +#!/bin/bash + +# Print defined gl.* functions not in GL ES 1.1 or in +# (FIXME, none of these should be part of the ABI) +# GL_EXT_discard_framebuffer +# GL_OES_fixed_point +# GL_OES_single_precision + +# or in extensions that are part of the ES 1.1 extension pack. +# (see http://www.khronos.org/registry/gles/specs/1.1/opengles_spec_1_1_extension_pack.pdf) + +FUNCS=$(nm -D --defined-only ${1-.libs/libGLESv1_CM.so.1} | grep -o 'T gl.*' | cut -c 3- | while read func; do +( grep -q "^$func$" || echo $func ) <