[Piglit] [PATCH 3/3] Add tests for glCompressedTex{Image, SubImage}3D().

Eric Anholt eric at anholt.net
Thu Jan 3 14:39:38 PST 2013


Paul Berry <stereotype441 at gmail.com> writes:
> +#ifdef PIGLIT_USE_OPENGL
> +#define GRAYSCALE_IMAGES piglit_fxt1_grayscale_images
> +#define COMPRESSED_FORMAT GL_COMPRESSED_RGB_FXT1_3DFX

FXT1 does mean that non-intel drivers won't run this test.  Not
objecting, just noting that.

> +#define GLSL_VERSION "120"

It seems like some of the ifdefs below in this test could go away by
just requiring 130.  Does anyone do arrays but not 130?

> +static const char vs_text[] =
> +	"#version " GLSL_VERSION "\n"

Maybe fold GLSL_VERSION into the ifdefs instead of ifdeffing it above?

> +#ifdef PIGLIT_USE_OPENGL
> +	"#define piglit_Vertex gl_Vertex\n"
> +	"#define piglit_MultiTexCoord0 gl_MultiTexCoord0\n"
> +	"#define piglit_in attribute\n"
> +	"#define piglit_out varying\n"
> +#else // PIGLIT_USE_OPENGL_ES3
> +	"#define piglit_in in\n"
> +	"#define piglit_out out\n"
> +	"piglit_in vec4 piglit_Vertex;\n"
> +	"piglit_in vec4 piglit_MultiTexCoord0;\n"
> +#endif
-------------- 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/20130103/9e845f5a/attachment.pgp>


More information about the Piglit mailing list