[Piglit] [PATCH] Porting basic GL rendering tests to piglit

Emil Velikov emil.l.velikov at gmail.com
Wed Sep 2 12:31:50 PDT 2015


Hi Juliet,

On 1 September 2015 at 22:49, Juliet Fru <julietfru at gmail.com> wrote:

> +enum piglit_result
> +piglit_display(void)
> +{
> +       bool pass = true;
> +       enum path p, paths[10];
> +       int i, num_paths = 0;
> +
> +       static const float white[3] = {1.0, 1.0, 1.0};
> +
> +       /* draw 10x10 pixel quads */
> +       glViewport(0, 0, 10, 10);
> +
> +       glDisable(GL_DITHER);
> +
> +       /* Build the list of paths to exercise */
> +       for (p = ALPHA; p != ZZZ; p = (enum path) (p + 1)) {
> +               paths[num_paths++] = p;
> +       }
> +
The original test skips depth/stencil tests when we do not have the
buffer. As you've dropped both the checks and the comment does that
mean the tests work/pass ? Shouldn't we add the appropriate
PIGLIT_GL_VISUAL to the config ?

-Emil


More information about the Piglit mailing list