[Piglit] [PATCH] Patch up glDraw{Arrays, Elements}InstancedARB dispatch to accept ARB_instanced_arrays.
jfonseca at vmware.com
jfonseca at vmware.com
Thu Oct 11 09:11:32 PDT 2012
From: José Fonseca <jfonseca at vmware.com>
---
tests/util/gen_dispatch.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tests/util/gen_dispatch.py b/tests/util/gen_dispatch.py
index 96a7f77..1e19c61 100644
--- a/tests/util/gen_dispatch.py
+++ b/tests/util/gen_dispatch.py
@@ -474,6 +474,13 @@ def generate_resolve_function(ds):
condition_code_pairs.append((condition, code))
+ # XXX: glDrawArraysInstancedARB/glDrawElementsInstancedARB belong both
+ # to ARB_instanced_arrays and ARB_draw_instanced, but neither gl.spec
+ # nor gl.json can accomodate an extension with two categories
+ if f.gl_name in ('glDrawArraysInstancedARB', 'glDrawElementsInstancedARB'):
+ condition = 'check_extension("ARB_instanced_arrays")'.format(category.extension_name)
+ condition_code_pairs.append((condition, code))
+
# Finally, if none of the previous conditions were satisfied, then
# the given dispatch set is not supported by the implementation,
# so we want to call the unsupported() function.
--
1.7.9.5
More information about the Piglit
mailing list