[Piglit] [PATCH 22/29] dispatch: Don't assume that 1.0 version is present
Pauli Nieminen
pauli.nieminen at linux.intel.com
Mon May 21 11:08:57 PDT 2012
GLES doesn't support everything from GL 1.0 that makes it mandator to
check if given function is present in the current context. But checking
a few specif functions would cause recursing back to the stub function.
To avoid the recursion problem assume that those functions are always
present.
Signed-off-by: Pauli Nieminen <pauli.nieminen at linux.intel.com>
---
tests/util/gen_dispatch.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/tests/util/gen_dispatch.py b/tests/util/gen_dispatch.py
index e7f640f..ffa37ef 100644
--- a/tests/util/gen_dispatch.py
+++ b/tests/util/gen_dispatch.py
@@ -451,7 +451,8 @@ def generate_resolve_function(ds):
if category.kind in ['GL', 'EGL', 'ES']:
getter = 'get_core_proc("{0}", {1})'.format(
f.gl_name, category.gl_10x_version)
- if category.gl_10x_version == 10:
+ if f.name in ['GetString', 'eglQueryString', \
+ 'eglGetCurrentDisplay', 'eglGetError']:
# Function has always been available--no need to check
# a condition.
condition = 'true'
--
1.7.5.4
More information about the Piglit
mailing list