[Piglit] [PATCH 2/2] gles-2.0: Check that ES 3 queries are not allowed in ES 2

Eric Anholt eric at anholt.net
Tue Dec 11 09:57:33 PST 2012


Matt Turner <mattst88 at gmail.com> writes:
> +void
> +piglit_init(int argc, char **argv)
> +{
> +	/* ES 3 adds many new queries over ES 2. This test confirms that ES 2
> +	 * correctly rejects them with an INVALID_OPERATION error.
> +	 */
> +	static const struct {
> +		const char *name;
> +		GLenum val;
> +	} query[] = {
> +		/* GL_ARB_ES3_compatibility */
> +		{ "GL_MAX_ELEMENT_INDEX", 0x8D6B },

I guess we can't use piglit_get_gl_enum_name() because it doesn't cover
these with this tests built for GLES2?  Or we don't have the enums
included in our build at all?

> +		/* GL_ARB_framebuffer_object */
> +		{ "GL_MAX_SAMPLES", 0x8D57 },

Have you confirmed that the enums in this list don't get exposed by any
of the extensions we suppport?  That was my concern with this patch.

> +	for (i = 0; i < ARRAY_SIZE(query); i++) {
> +		glGetInteger64v(query[i].val, &param);

I'm confused, I don't see glGetInteger64v in my GLES2 spec.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20121211/ce9edba1/attachment.pgp>


More information about the Piglit mailing list