[Piglit] [PATCH 07/29] util: Check that egl is supported in the selected platform

Eric Anholt eric at anholt.net
Tue May 22 17:54:45 PDT 2012

On Mon, 21 May 2012 21:08:42 +0300, Pauli Nieminen <pauli.nieminen at linux.intel.com> wrote:
> This allows runtime skiping of egl tests if we are running piglit using
> glx.

> +#ifdef USE_WAFFLE
> +	if (glutGetPlatform() != WAFFLE_PLATFORM_X11_EGL &&
> +		glutGetPlatform() != WAFFLE_PLATFORM_ANDROID) {
> +		fprintf(stderr, "EGL test running in platform without EGL\n");
> +		piglit_report_result(PIGLIT_SKIP);
> +	}
> +#endif

This is the first time I've seen the symbol "glutGetPlatform".  Adding
our own symbols in the glut namespace that return WAFFLE_* things seems
like a totally wrong thing to do.  Probably that should be a piglit call
or variable instead.
-------------- 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/20120522/19769e23/attachment.pgp>

More information about the Piglit mailing list