aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/tests/Makefile.am
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2012-08-01 22:19:01 -0700
committerIan Romanick <[email protected]>2012-09-28 08:19:54 -0700
commit66159f94a5ce00b2e7c06766d7d1ecc1208c2f69 (patch)
treec58b99c5b92948d3a9e32eb632184e78c6fc42dc /src/mesa/main/tests/Makefile.am
parentd0e142834948307ccfad6b038814618604390e2a (diff)
mesa/tests: Sanity check the ES2 dispatch table
This test is only built when shared-glapi is used. Because of changes elsewhere in the tree that were necessary to make shared-glapi work correct with GLX, it's not feasible to make the test function both ways. The list of expected functions originally came from the functions set by api_exec_es2.c. This file no longer exists in Mesa (but api_exec_es1.c is still generated). It was the generated file that configured the dispatch table for ES2 contexts. This test verifies that all of the functions set by the old api_exec_es2.c (with the recent addition of VAO functions) are set in the dispatch table and everything else is a NOP. When adding ES2 (or ES3) extensions that add new functions, this test will need to be modified to expect dispatch functions for the new extension functions. v2: Expect VAO functions be non-NOP. Signed-off-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main/tests/Makefile.am')
-rw-r--r--src/mesa/main/tests/Makefile.am3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/tests/Makefile.am b/src/mesa/main/tests/Makefile.am
index 3d1a5d8923f..cac04bcd6ec 100644
--- a/src/mesa/main/tests/Makefile.am
+++ b/src/mesa/main/tests/Makefile.am
@@ -19,6 +19,9 @@ main_test_LDADD = \
if HAVE_SHARED_GLAPI
AM_CPPFLAGS += -DHAVE_SHARED_GLAPI
+main_test_SOURCES += \
+ dispatch_sanity.cpp
+
main_test_LDADD += \
$(top_builddir)/src/mapi/shared-glapi/libglapi.la
else