From: José Fonseca <jfons...@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

_______________________________________________
Piglit mailing list
Piglit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to