From: Neil Roberts <nrobe...@igalia.com>

This is just like “draw arrays instanced” but has an extra parameter
to set the baseinstance.
---
 tests/shaders/shader_runner.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index 778229e2a..c53980b20 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -4855,6 +4855,16 @@ piglit_display(void)
                        size_t primcount = (size_t) z;
                        draw_arrays_common(first, count);
                        glDrawArraysInstanced(mode, first, count, primcount);
+               } else if (sscanf(line, "draw arrays instanced base %31s %d %d 
%d %d", s, &x, &y, &z, &w) == 5) {
+                       GLenum mode = decode_drawing_mode(s);
+                       int first = x;
+                       size_t count = (size_t) y;
+                       size_t primcount = (size_t) z;
+                       GLuint baseinstance = (GLuint) w;
+                       draw_arrays_common(first, count);
+                       glDrawArraysInstancedBaseInstance(mode, first, count,
+                                                         primcount,
+                                                         baseinstance);
                } else if (sscanf(line, "draw arrays %31s %d %d", s, &x, &y) == 
3) {
                        GLenum mode = decode_drawing_mode(s);
                        int first = x;
-- 
2.19.1

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

Reply via email to