[Piglit] [PATCH 1/2] Add a simple edge flag test

Eric Anholt eric at anholt.net
Thu Sep 22 22:21:10 PDT 2011


On Fri, 23 Sep 2011 10:34:56 +0800, Yuanhan Liu <yuanhan.liu at linux.intel.com> wrote:
> v2: suggested by Ian, move all the init stuff into piglit_init function,
> also to set the line width 'big enought' to 10 to make sure the pixel we
> want to probe is rasterized.
> 
> Signed-off-by: Yuanhan Liu <yuanhan.liu at linux.intel.com>

> diff --git a/tests/general/edge-flag.c b/tests/general/edge-flag.c
> new file mode 100644
> index 0000000..09a2f5c
> --- /dev/null
> +++ b/tests/general/edge-flag.c
> +int piglit_width = 100, piglit_height = 100;
> +int piglit_window_mode = GLUT_RGB | GLUT_DOUBLE;
> +
> +static GLfloat blue[3] = {0.0, 0.0, 1.0};
> +static GLfloat black[3] = {0.0, 0.0, 0.0};
> +
> +struct edge_flag_test {
> +	float x;
> +	float y;
> +	GLboolean edage_flag;
> +};

"edge_flag"?
-------------- 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/20110922/dd016673/attachment.pgp>


More information about the Piglit mailing list