[Piglit] [PATCH 13/18] arb_draw_indirect/draw-arrays-prim-restart: Ignore primitive restart.
Fabian Bieler
fabianbieler at fastmail.fm
Sun Jan 7 22:14:08 UTC 2018
glspec45 says since version 20141030 primitive restart only affects
glDrawElements* calls. This is supposed to be a retroactive change.
Previously, this test expected glDrawArraysIndirect to respect primitive
restart.
This commit modifies the test to expect glDrawArraysIndirect to ignore
it, instead.
See also https://bugs.freedesktop.org/show_bug.cgi?id=93308
---
tests/spec/arb_draw_indirect/draw-arrays-prim-restart.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/tests/spec/arb_draw_indirect/draw-arrays-prim-restart.c b/tests/spec/arb_draw_indirect/draw-arrays-prim-restart.c
index 4f4b71b41..7b47cd9e8 100644
--- a/tests/spec/arb_draw_indirect/draw-arrays-prim-restart.c
+++ b/tests/spec/arb_draw_indirect/draw-arrays-prim-restart.c
@@ -22,7 +22,11 @@
*/
/**
- * Test if primitive restart works with glDrawArraysIndirect.
+ * Test if primitive restart is ignored by glDrawArraysIndirect.
+ *
+ * glspec45 says since version 20141030 primitive restart only affects
+ * glDrawElements* calls. This is supposed to be a retroactive change.
+ * (See also https://bugs.freedesktop.org/show_bug.cgi?id=93308)
*/
#include "piglit-util-gl.h"
@@ -78,10 +82,10 @@ piglit_init(int argc, char **argv)
-1, -1,
-1, 1,
1, -1,
- 1, -1, /* restart index */
+ -1, 1,
1, 1,
1, -1,
- -1, 1,
+ 1, -1, /* dropped */
};
static const int indices[] = {
7, /* count */
--
2.15.1
More information about the Piglit
mailing list