Commit 4fc4089d authored by Dave Airlie's avatar Dave Airlie
Browse files

fp-fragment-position: fix test to not require swap buffers.



This makes this test just do back buffer readback and only swaps
buffer in the non automatic case.

Fixes test on llvmpipe/softpipe.
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent c758fa4f
......@@ -127,7 +127,6 @@ static void DoFrame(void)
glVertex2f(1, 2);
glEnd();
glutSwapBuffers();
}
static const struct {
......@@ -230,8 +229,6 @@ DoTest(void)
int i;
bool pass = true;
glReadBuffer( GL_FRONT );
for (i = 0; i < ARRAY_SIZE(Probes); i++) {
printf("Testing: %s\n", Probes[i].name);
pass = piglit_probe_pixel_rgba(Probes[i].x * piglit_width / 2,
......@@ -251,6 +248,8 @@ piglit_display(void)
DoFrame();
pass = DoTest();
if (!piglit_automatic)
glutSwapBuffers();
return pass ? PIGLIT_PASS : PIGLIT_FAIL;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment