summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Peres <martin.peres@linux.intel.com>2015-02-26 14:20:26 +0200
committerMartin Peres <martin.peres@linux.intel.com>2015-03-03 10:54:02 +0200
commit47522aa943a99a9a5bcd9c6ee04667c7a627f4e3 (patch)
treec0dd79b7f92af0dd0f8f9f123ffcdec91d81ea40
parent36b63cbbe7c0be6d3f66ee6fc75309606042309f (diff)
dsa_create-transformfeedback: set the min. GL version to 3.1 core
Also add the relevant quote from the spec. Signed-off-by: Martin Peres <martin.peres@linux.intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
-rw-r--r--tests/spec/arb_direct_state_access/create-transformfeedbacks.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/spec/arb_direct_state_access/create-transformfeedbacks.c b/tests/spec/arb_direct_state_access/create-transformfeedbacks.c
index f837c132d..b1e133efe 100644
--- a/tests/spec/arb_direct_state_access/create-transformfeedbacks.c
+++ b/tests/spec/arb_direct_state_access/create-transformfeedbacks.c
@@ -25,6 +25,14 @@
*
* Tests glCreateTransformFeedbacks to see if it behaves in the expected way,
* throwing the correct errors, etc.
+ *
+ * From OpenGL 4.5, section 13.2.1 "Transform Feedback Objects", page 420:
+ *
+ * "CreateTransformFeedbacks returns n previously unused transform feedback
+ * object names in ids, each representing a new state vector, comprising the
+ * state and with all the same initial values listed in table 23.48.
+ * Errors
+ * An INVALID_VALUE error is generated if n is negative."
*/
#include "piglit-util-gl.h"
@@ -32,7 +40,7 @@
PIGLIT_GL_TEST_CONFIG_BEGIN
- config.supports_gl_compat_version = 13;
+ config.supports_gl_core_version = 31;
config.window_visual = PIGLIT_GL_VISUAL_RGBA |
PIGLIT_GL_VISUAL_DOUBLE;
@@ -71,5 +79,9 @@ piglit_display(void)
SUBTESTCONDITION(glIsTransformFeedback(ids[2]), pass,
"IsTransformFeedback()");
+ /* the default state is tested in the following piglit test:
+ * arb_direct_state_access-gettransformfeedback
+ */
+
return pass ? PIGLIT_PASS : PIGLIT_FAIL;
}