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

Yuanhan Liu yuanhan.liu at linux.intel.com
Thu Sep 22 22:28:57 PDT 2011


On Thu, Sep 22, 2011 at 10:21:10PM -0700, Eric Anholt wrote:
> 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"?

Oops, sorry for that. Will fire a new one.

Thanks,
Yuanhan Liu


More information about the Piglit mailing list