diff options
author | Chris Forbes <chrisf@ijw.co.nz> | 2012-08-21 21:11:55 +1200 |
---|---|---|
committer | Chad Versace <chad.versace@linux.intel.com> | 2012-09-04 16:02:18 -0700 |
commit | 9cad85663901e4c3f729b86b007a97fa1de13a5f (patch) | |
tree | 72936357a09eb03955f59358f1517d217e6e7b97 | |
parent | 9c6ac73c2871a3b08ea13d39cd5c596d75220aab (diff) |
Convert all glutSwapBuffers to piglit_present_results
V2: Don't break tests/general/read-front
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
308 files changed, 336 insertions, 336 deletions
diff --git a/tests/bugs/fdo22540.c b/tests/bugs/fdo22540.c index 3e5d5d51..2df694bc 100644 --- a/tests/bugs/fdo22540.c +++ b/tests/bugs/fdo22540.c @@ -88,7 +88,7 @@ piglit_display(void) pass = pass && piglit_probe_pixel_rgb(200, 150, gray); glFinish(); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/bugs/fdo23670-depth_test.c b/tests/bugs/fdo23670-depth_test.c index 85a1f990..cf72240b 100644 --- a/tests/bugs/fdo23670-depth_test.c +++ b/tests/bugs/fdo23670-depth_test.c @@ -78,7 +78,7 @@ piglit_display(void) pass &= piglit_probe_pixel_rgb(0, 0, red); pass &= piglit_probe_pixel_rgb(2, 0, white); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/bugs/fdo23670-drawpix_stencil.c b/tests/bugs/fdo23670-drawpix_stencil.c index c2498995..ac13a00a 100644 --- a/tests/bugs/fdo23670-drawpix_stencil.c +++ b/tests/bugs/fdo23670-drawpix_stencil.c @@ -74,7 +74,7 @@ piglit_display(void) pass &= piglit_probe_rect_rgb(50, 50, 20, 10, red); pass &= piglit_probe_rect_rgb(50, 60, 20, 10, black); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/bugs/fdo25614-genmipmap.c b/tests/bugs/fdo25614-genmipmap.c index fb0545e8..43a7042e 100644 --- a/tests/bugs/fdo25614-genmipmap.c +++ b/tests/bugs/fdo25614-genmipmap.c @@ -151,7 +151,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/bugs/point-sprite.c b/tests/bugs/point-sprite.c index 8e1069f7..2862b638 100644 --- a/tests/bugs/point-sprite.c +++ b/tests/bugs/point-sprite.c @@ -140,7 +140,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/bugs/tex1d-2dborder.c b/tests/bugs/tex1d-2dborder.c index c93e2fe8..4d04a9e5 100644 --- a/tests/bugs/tex1d-2dborder.c +++ b/tests/bugs/tex1d-2dborder.c @@ -98,7 +98,7 @@ piglit_display(void) pass &= test(GL_MIRROR_CLAMP_TO_BORDER_EXT, 3, 1); } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/bugs/tri-tex-crash.c b/tests/bugs/tri-tex-crash.c index 5f11587b..0b83541f 100644 --- a/tests/bugs/tri-tex-crash.c +++ b/tests/bugs/tri-tex-crash.c @@ -104,7 +104,7 @@ piglit_display(void) else result = PIGLIT_FAIL; - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/bugs/vbo-buffer-unmap.c b/tests/bugs/vbo-buffer-unmap.c index c4e1f1df..9be05855 100644 --- a/tests/bugs/vbo-buffer-unmap.c +++ b/tests/bugs/vbo-buffer-unmap.c @@ -76,7 +76,7 @@ piglit_display(void) glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 8, 8, 0, GL_RGBA, GL_UNSIGNED_BYTE, image); - glutSwapBuffers(); + piglit_present_results(); return PIGLIT_PASS; } diff --git a/tests/fbo/fbo-1d.c b/tests/fbo/fbo-1d.c index 74698b0c..8b19ac32 100644 --- a/tests/fbo/fbo-1d.c +++ b/tests/fbo/fbo-1d.c @@ -137,7 +137,7 @@ piglit_display(void) glDeleteTextures(1, &tex); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-3d.c b/tests/fbo/fbo-3d.c index dcd03025..3fce4961 100644 --- a/tests/fbo/fbo-3d.c +++ b/tests/fbo/fbo-3d.c @@ -178,7 +178,7 @@ piglit_display(void) glDeleteTextures(1, &tex); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-alpha.c b/tests/fbo/fbo-alpha.c index 766ed7ad..09a5d02b 100644 --- a/tests/fbo/fbo-alpha.c +++ b/tests/fbo/fbo-alpha.c @@ -137,7 +137,7 @@ piglit_display(void) pass = piglit_probe_pixel_rgba(piglit_width * 5 / 8, 0, gray) && pass; pass = piglit_probe_pixel_rgba(piglit_width * 7 / 8, 0, gray) && pass; - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-alphatest-formats.c b/tests/fbo/fbo-alphatest-formats.c index 2ef271ec..09b2277a 100644 --- a/tests/fbo/fbo-alphatest-formats.c +++ b/tests/fbo/fbo-alphatest-formats.c @@ -245,7 +245,7 @@ static enum piglit_result test_format(const struct format_desc *format) glDeleteFramebuffersEXT(1, &fb); if (!pass) { - glutSwapBuffers(); + piglit_present_results(); return PIGLIT_FAIL; } @@ -304,7 +304,7 @@ static enum piglit_result test_format(const struct format_desc *format) pass = GL_FALSE; } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-alphatest-nocolor-ff.c b/tests/fbo/fbo-alphatest-nocolor-ff.c index a0f66909..5439d95d 100644 --- a/tests/fbo/fbo-alphatest-nocolor-ff.c +++ b/tests/fbo/fbo-alphatest-nocolor-ff.c @@ -136,7 +136,7 @@ enum piglit_result piglit_display(void) glDeleteTextures(1, &tex); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-alphatest-nocolor.c b/tests/fbo/fbo-alphatest-nocolor.c index d0b4c1cd..1794fd2a 100644 --- a/tests/fbo/fbo-alphatest-nocolor.c +++ b/tests/fbo/fbo-alphatest-nocolor.c @@ -153,7 +153,7 @@ enum piglit_result piglit_display(void) glDeleteTextures(1, &tex); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-array.c b/tests/fbo/fbo-array.c index 2f75b9e0..96216395 100644 --- a/tests/fbo/fbo-array.c +++ b/tests/fbo/fbo-array.c @@ -205,7 +205,7 @@ piglit_display(void) glDeleteTextures(1, &tex); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-blending-formats.c b/tests/fbo/fbo-blending-formats.c index 9fb5bca2..8be09b01 100644 --- a/tests/fbo/fbo-blending-formats.c +++ b/tests/fbo/fbo-blending-formats.c @@ -296,7 +296,7 @@ static enum piglit_result test_format(const struct format_desc *format) glDeleteFramebuffersEXT(1, &fb); if (!pass) { - glutSwapBuffers(); + piglit_present_results(); return PIGLIT_FAIL; } @@ -346,7 +346,7 @@ static enum piglit_result test_format(const struct format_desc *format) pass = GL_FALSE; } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-blit-d24s8.c b/tests/fbo/fbo-blit-d24s8.c index 81b8bc84..cb44990e 100644 --- a/tests/fbo/fbo-blit-d24s8.c +++ b/tests/fbo/fbo-blit-d24s8.c @@ -250,7 +250,7 @@ run_test(void) glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0); assert(glGetError() == 0); - glutSwapBuffers(); + piglit_present_results(); return pass; } diff --git a/tests/fbo/fbo-blit.c b/tests/fbo/fbo-blit.c index 51934888..7eb56370 100644 --- a/tests/fbo/fbo-blit.c +++ b/tests/fbo/fbo-blit.c @@ -196,7 +196,7 @@ run_test(void) pass = verify_color_rect(PAD, y1, SIZE, SIZE) && pass; glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0); - glutSwapBuffers(); + piglit_present_results(); return pass; } diff --git a/tests/fbo/fbo-clearmipmap.c b/tests/fbo/fbo-clearmipmap.c index f1ea0e85..a71af1ff 100644 --- a/tests/fbo/fbo-clearmipmap.c +++ b/tests/fbo/fbo-clearmipmap.c @@ -165,7 +165,7 @@ piglit_display(void) x += dim + 1; } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-copypix.c b/tests/fbo/fbo-copypix.c index fcc420c4..7dc0e595 100644 --- a/tests/fbo/fbo-copypix.c +++ b/tests/fbo/fbo-copypix.c @@ -193,7 +193,7 @@ run_test(void) pass = verify_color_rect(PAD, y1, SIZE, SIZE) && pass; pass = verify_color_rect(PAD, y2, SIZE, SIZE) && pass; - glutSwapBuffers(); + piglit_present_results(); return pass; } diff --git a/tests/fbo/fbo-copyteximage-simple.c b/tests/fbo/fbo-copyteximage-simple.c index 8a9aea18..6a9d3be9 100644 --- a/tests/fbo/fbo-copyteximage-simple.c +++ b/tests/fbo/fbo-copyteximage-simple.c @@ -135,7 +135,7 @@ piglit_display(void) glDeleteTextures(1, &tex); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-copyteximage.c b/tests/fbo/fbo-copyteximage.c index 604bea0d..9a6be6f9 100644 --- a/tests/fbo/fbo-copyteximage.c +++ b/tests/fbo/fbo-copyteximage.c @@ -138,7 +138,7 @@ piglit_display(void) glDeleteTextures(1, &tex); glDisable(GL_TEXTURE_2D); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-cubemap.c b/tests/fbo/fbo-cubemap.c index b67e9966..cc91a149 100644 --- a/tests/fbo/fbo-cubemap.c +++ b/tests/fbo/fbo-cubemap.c @@ -195,7 +195,7 @@ piglit_display(void) glDeleteTextures(1, &tex); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-depth-array.c b/tests/fbo/fbo-depth-array.c index 2b264b45..0143fe7c 100644 --- a/tests/fbo/fbo-depth-array.c +++ b/tests/fbo/fbo-depth-array.c @@ -228,7 +228,7 @@ piglit_display(void) glDeleteTextures(1, &tex); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-depth-sample-compare.c b/tests/fbo/fbo-depth-sample-compare.c index 47aefb31..aca8cbea 100644 --- a/tests/fbo/fbo-depth-sample-compare.c +++ b/tests/fbo/fbo-depth-sample-compare.c @@ -485,7 +485,7 @@ piglit_display(void) result = count_and_report_bad_pixels(); - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/fbo/fbo-depth-tex1d.c b/tests/fbo/fbo-depth-tex1d.c index edd7a89b..bc983b53 100644 --- a/tests/fbo/fbo-depth-tex1d.c +++ b/tests/fbo/fbo-depth-tex1d.c @@ -194,7 +194,7 @@ enum piglit_result piglit_display(void) glDeleteTextures(1, &tex); glDeleteTextures(1, &ds); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-depth.c b/tests/fbo/fbo-depth.c index fdb61fb9..83080ffb 100644 --- a/tests/fbo/fbo-depth.c +++ b/tests/fbo/fbo-depth.c @@ -302,7 +302,7 @@ enum piglit_result piglit_display(void) glDeleteFramebuffersEXT(1, &fb); glDeleteRenderbuffersEXT(1, &rb); - glutSwapBuffers(); + piglit_present_results(); assert(glGetError() == 0); return res; diff --git a/tests/fbo/fbo-depthstencil.c b/tests/fbo/fbo-depthstencil.c index 91a4da01..b5317182 100644 --- a/tests/fbo/fbo-depthstencil.c +++ b/tests/fbo/fbo-depthstencil.c @@ -471,7 +471,7 @@ enum piglit_result piglit_display(void) glDeleteRenderbuffersEXT(1, &rb); } - glutSwapBuffers(); + piglit_present_results(); assert(glGetError() == 0); return res; diff --git a/tests/fbo/fbo-depthtex.c b/tests/fbo/fbo-depthtex.c index a801ae7a..d6a18e80 100644 --- a/tests/fbo/fbo-depthtex.c +++ b/tests/fbo/fbo-depthtex.c @@ -146,7 +146,7 @@ enum piglit_result piglit_display(void) pass &= piglit_probe_pixel_rgb(expected[i].x, expected[i].y, expected[i].color); } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-drawbuffers-arbfp.c b/tests/fbo/fbo-drawbuffers-arbfp.c index b3266d8e..a382b824 100644 --- a/tests/fbo/fbo-drawbuffers-arbfp.c +++ b/tests/fbo/fbo-drawbuffers-arbfp.c @@ -132,7 +132,7 @@ piglit_display(void) pass = pass && piglit_probe_rect_rgba(piglit_width / 2, 0, piglit_width / 2, piglit_height, result1); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-drawbuffers-blend-add.c b/tests/fbo/fbo-drawbuffers-blend-add.c index 3392f5b0..76bf3244 100644 --- a/tests/fbo/fbo-drawbuffers-blend-add.c +++ b/tests/fbo/fbo-drawbuffers-blend-add.c @@ -215,7 +215,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-drawbuffers-fragcolor.c b/tests/fbo/fbo-drawbuffers-fragcolor.c index 080c9764..f93a4377 100644 --- a/tests/fbo/fbo-drawbuffers-fragcolor.c +++ b/tests/fbo/fbo-drawbuffers-fragcolor.c @@ -163,7 +163,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-drawbuffers-maxtargets.c b/tests/fbo/fbo-drawbuffers-maxtargets.c index d257f8bd..e9700985 100644 --- a/tests/fbo/fbo-drawbuffers-maxtargets.c +++ b/tests/fbo/fbo-drawbuffers-maxtargets.c @@ -171,7 +171,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-drawbuffers.c b/tests/fbo/fbo-drawbuffers.c index 882be353..4f63be5a 100644 --- a/tests/fbo/fbo-drawbuffers.c +++ b/tests/fbo/fbo-drawbuffers.c @@ -118,7 +118,7 @@ piglit_display(void) pass = pass && piglit_probe_rect_rgb(0, 0, piglit_width, piglit_height, green); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-drawbuffers2-blend.c b/tests/fbo/fbo-drawbuffers2-blend.c index 74df808f..fb9a5b67 100644 --- a/tests/fbo/fbo-drawbuffers2-blend.c +++ b/tests/fbo/fbo-drawbuffers2-blend.c @@ -129,7 +129,7 @@ piglit_display(void) pass = pass && piglit_probe_rect_rgb(piglit_width/2, 0, piglit_width/2, piglit_height, blue); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-drawbuffers2-colormask.c b/tests/fbo/fbo-drawbuffers2-colormask.c index 6de94454..e7ca8516 100644 --- a/tests/fbo/fbo-drawbuffers2-colormask.c +++ b/tests/fbo/fbo-drawbuffers2-colormask.c @@ -127,7 +127,7 @@ piglit_display(void) pass = pass && piglit_probe_rect_rgb(piglit_width/2, 0, piglit_width/2, piglit_height, blue); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-flushing-2.c b/tests/fbo/fbo-flushing-2.c index c84b2dab..5250e780 100644 --- a/tests/fbo/fbo-flushing-2.c +++ b/tests/fbo/fbo-flushing-2.c @@ -124,7 +124,7 @@ piglit_display(void) draw_green = !draw_green; } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-flushing.c b/tests/fbo/fbo-flushing.c index 898864ec..7d37937a 100644 --- a/tests/fbo/fbo-flushing.c +++ b/tests/fbo/fbo-flushing.c @@ -122,7 +122,7 @@ piglit_display(void) y += size + 5; } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-fragcoord.c b/tests/fbo/fbo-fragcoord.c index 2a7671c6..cfd7be2e 100644 --- a/tests/fbo/fbo-fragcoord.c +++ b/tests/fbo/fbo-fragcoord.c @@ -131,7 +131,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-fragcoord2.c b/tests/fbo/fbo-fragcoord2.c index ecde0382..9277e586 100644 --- a/tests/fbo/fbo-fragcoord2.c +++ b/tests/fbo/fbo-fragcoord2.c @@ -191,7 +191,7 @@ test(void) result = PIGLIT_FAIL; } - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/fbo/fbo-generatemipmap-array.c b/tests/fbo/fbo-generatemipmap-array.c index a4304e64..d3fa222b 100644 --- a/tests/fbo/fbo-generatemipmap-array.c +++ b/tests/fbo/fbo-generatemipmap-array.c @@ -382,7 +382,7 @@ piglit_display(void) glDeleteTextures(1, &tex1d); glDeleteTextures(1, &tex2d); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-generatemipmap-filtering.c b/tests/fbo/fbo-generatemipmap-filtering.c index 041284be..b431d9b4 100644 --- a/tests/fbo/fbo-generatemipmap-filtering.c +++ b/tests/fbo/fbo-generatemipmap-filtering.c @@ -128,7 +128,7 @@ piglit_display(void) glDeleteTextures(1, &tex); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-generatemipmap-formats.c b/tests/fbo/fbo-generatemipmap-formats.c index 4a7d58ea..8ce942d5 100644 --- a/tests/fbo/fbo-generatemipmap-formats.c +++ b/tests/fbo/fbo-generatemipmap-formats.c @@ -470,7 +470,7 @@ piglit_display(void) test_sets[test_index].basetype); } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-generatemipmap-nonsquare.c b/tests/fbo/fbo-generatemipmap-nonsquare.c index 444bb2e1..99bc4823 100644 --- a/tests/fbo/fbo-generatemipmap-nonsquare.c +++ b/tests/fbo/fbo-generatemipmap-nonsquare.c @@ -164,7 +164,7 @@ piglit_display(void) glDeleteTextures(1, &tex); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-generatemipmap-npot.c b/tests/fbo/fbo-generatemipmap-npot.c index 73d9bf2f..3d67b0af 100644 --- a/tests/fbo/fbo-generatemipmap-npot.c +++ b/tests/fbo/fbo-generatemipmap-npot.c @@ -158,7 +158,7 @@ piglit_display(void) glDeleteTextures(1, &tex); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-generatemipmap-scissor.c b/tests/fbo/fbo-generatemipmap-scissor.c index f5f3001a..7dcb9c76 100644 --- a/tests/fbo/fbo-generatemipmap-scissor.c +++ b/tests/fbo/fbo-generatemipmap-scissor.c @@ -164,7 +164,7 @@ piglit_display(void) glDeleteTextures(1, &tex); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-generatemipmap-viewport.c b/tests/fbo/fbo-generatemipmap-viewport.c index cd8173d8..5dae037f 100644 --- a/tests/fbo/fbo-generatemipmap-viewport.c +++ b/tests/fbo/fbo-generatemipmap-viewport.c @@ -154,7 +154,7 @@ piglit_display(void) glDeleteTextures(1, &tex); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-generatemipmap.c b/tests/fbo/fbo-generatemipmap.c index bad9afdc..2d670966 100644 --- a/tests/fbo/fbo-generatemipmap.c +++ b/tests/fbo/fbo-generatemipmap.c @@ -158,7 +158,7 @@ piglit_display(void) glDeleteTextures(1, &tex); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-integer.c b/tests/fbo/fbo-integer.c index 1e5599b1..c9e2c0f8 100644 --- a/tests/fbo/fbo-integer.c +++ b/tests/fbo/fbo-integer.c @@ -370,7 +370,7 @@ test_fbo(const struct format_info *info) } } - glutSwapBuffers(); + piglit_present_results(); glDeleteTextures(1, &texObj); glDeleteFramebuffers(1, &fbo); diff --git a/tests/fbo/fbo-luminance-alpha.c b/tests/fbo/fbo-luminance-alpha.c index b945e899..62ef696b 100644 --- a/tests/fbo/fbo-luminance-alpha.c +++ b/tests/fbo/fbo-luminance-alpha.c @@ -143,7 +143,7 @@ piglit_display(void) printf("Testing window result, blending SRC_ALPHA.\n"); pass = piglit_probe_pixel_rgba(piglit_width * 7 / 8, 0, win_blend2) && pass; - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-maxsize.c b/tests/fbo/fbo-maxsize.c index ae4f6564..ce973a1a 100644 --- a/tests/fbo/fbo-maxsize.c +++ b/tests/fbo/fbo-maxsize.c @@ -216,7 +216,7 @@ piglit_display(void) glDeleteTextures(1, &tex); glDisable(GL_TEXTURE_2D); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-nodepth-test.c b/tests/fbo/fbo-nodepth-test.c index a401ea53..17187461 100644 --- a/tests/fbo/fbo-nodepth-test.c +++ b/tests/fbo/fbo-nodepth-test.c @@ -87,7 +87,7 @@ piglit_display(void) 0, 0, 1, 1); glDisable(GL_TEXTURE_2D); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-nostencil-test.c b/tests/fbo/fbo-nostencil-test.c index 62dd7d96..43717495 100644 --- a/tests/fbo/fbo-nostencil-test.c +++ b/tests/fbo/fbo-nostencil-test.c @@ -87,7 +87,7 @@ piglit_display(void) 0, 0, 1, 1); glDisable(GL_TEXTURE_2D); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-pbo-readpixels-small.c b/tests/fbo/fbo-pbo-readpixels-small.c index b3fb6f43..fc8a9606 100644 --- a/tests/fbo/fbo-pbo-readpixels-small.c +++ b/tests/fbo/fbo-pbo-readpixels-small.c @@ -156,7 +156,7 @@ piglit_display(void) glDeleteFramebuffersEXT(1, &fbo); glDeleteTextures(1, &tex); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-readdrawpix.c b/tests/fbo/fbo-readdrawpix.c index dc275767..bc0c96fb 100644 --- a/tests/fbo/fbo-readdrawpix.c +++ b/tests/fbo/fbo-readdrawpix.c @@ -196,7 +196,7 @@ run_test(void) pass = verify_color_rect(PAD, y1, SIZE, SIZE) && pass; pass = verify_color_rect(PAD, y2, SIZE, SIZE) && pass; - glutSwapBuffers(); + piglit_present_results(); return pass; } diff --git a/tests/fbo/fbo-readpixels.c b/tests/fbo/fbo-readpixels.c index 36c4bc15..c6fcadc3 100644 --- a/tests/fbo/fbo-readpixels.c +++ b/tests/fbo/fbo-readpixels.c @@ -194,7 +194,7 @@ piglit_display(void) 0, (BUF_HEIGHT + 1) * 2); pass &= test_with_format(GL_RGB5_A1, GL_BGRA, 0, (BUF_HEIGHT + 1) * 3); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-rg.c b/tests/fbo/fbo-rg.c index 55850513..b9cfc4db 100644 --- a/tests/fbo/fbo-rg.c +++ b/tests/fbo/fbo-rg.c @@ -87,7 +87,7 @@ piglit_display(void) piglit_draw_rect_tex(0.0, -1.0, 1.0, 2.0, 0.0, 0.0, 1.0, 1.0); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-scissor-bitmap.c b/tests/fbo/fbo-scissor-bitmap.c index 458572ef..58eb6f97 100644 --- a/tests/fbo/fbo-scissor-bitmap.c +++ b/tests/fbo/fbo-scissor-bitmap.c @@ -342,7 +342,7 @@ static void display_texture_to_window(GLint texture) glDisable(GL_TEXTURE_2D); - glutSwapBuffers(); + piglit_present_results(); } enum piglit_result diff --git a/tests/fbo/fbo-srgb-blit.c b/tests/fbo/fbo-srgb-blit.c index 22f71158..30ad4953 100644 --- a/tests/fbo/fbo-srgb-blit.c +++ b/tests/fbo/fbo-srgb-blit.c @@ -114,7 +114,7 @@ enum piglit_result piglit_display(void) pass &= piglit_probe_pixel_rgb(expected[i].x, expected[i].y, expected[i].color); } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/fbo/fbo-srgb.c b/tests/fbo/fbo-srgb.c index 4f5682d2..9a09c5c1 100644 --- a/tests/fbo/fbo-srgb.c +++ b/tests/fbo/fbo-srgb.c @@ -161,7 +161,7 @@ framebuffer_srgb_fbo(int srgb_format) glDeleteFramebuffersEXT(1, &fbo); glDeleteTextures(1, &tex); - glutSwapBuffers(); + piglit_present_results(); return pass; } diff --git a/tests/fbo/fbo-stencil.c b/tests/fbo/fbo-stencil.c index cb91063d..94497c62 100644 --- a/tests/fbo/fbo-stencil.c +++ b/tests/fbo/fbo-stencil.c @@ -320,7 +320,7 @@ enum piglit_result piglit_display(void) glDeleteFramebuffersEXT(1, &fb); glDeleteRenderbuffersEXT(1, &rb); - glutSwapBuffers(); + piglit_present_results(); assert(glGetError() == 0); return res; diff --git a/tests/fbo/fbo-viewport.c b/tests/fbo/fbo-viewport.c index 8806dc08..0374c263 100644 --- a/tests/fbo/fbo-viewport.c +++ b/tests/fbo/fbo-viewport.c @@ -169,7 +169,7 @@ piglit_display(void) printf("Showing %s image\n", (i & 1) ? "FBO" : "window"); glDrawPixels(piglit_width, piglit_height, GL_RGB, GL_UNSIGNED_BYTE, image); - glutSwapBuffers(); + piglit_present_results(); sleep(1); } } diff --git a/tests/general/array-stride.c b/tests/general/array-stride.c index 84e730dc..297a5567 100644 --- a/tests/general/array-stride.c +++ b/tests/general/array-stride.c @@ -129,7 +129,7 @@ piglit_display(void) glReadPixels(0, 0, piglit_width, piglit_height, GL_RGBA, GL_UNSIGNED_BYTE, buf1); - glutSwapBuffers(); + piglit_present_results(); /* compare bufs */ if (memcmp(buf0, buf1, piglit_width * piglit_height * 4) != 0) { diff --git a/tests/general/bgra-sec-color-pointer.c b/tests/general/bgra-sec-color-pointer.c index f7b65fb9..6e5fc194 100644 --- a/tests/general/bgra-sec-color-pointer.c +++ b/tests/general/bgra-sec-color-pointer.c @@ -117,7 +117,7 @@ piglit_display(void) pass = pass && piglit_probe_pixel_rgb(275, 125, greyBlue); glFinish(); - glutSwapBuffers(); + piglit_present_results(); glDisable(GL_BLEND); glDisableClientState(GL_SECONDARY_COLOR_ARRAY); diff --git a/tests/general/bgra-vert-attrib-pointer.c b/tests/general/bgra-vert-attrib-pointer.c index f9e52f90..f3703c3f 100644 --- a/tests/general/bgra-vert-attrib-pointer.c +++ b/tests/general/bgra-vert-attrib-pointer.c @@ -187,7 +187,7 @@ piglit_display(void) pass = pass && piglit_probe_pixel_rgb(275, 125, greyBlue); glFinish(); - glutSwapBuffers(); + piglit_present_results(); glDisable(GL_BLEND); diff --git a/tests/general/blendminmax.c b/tests/general/blendminmax.c index a02beb6d..c4fc442f 100644 --- a/tests/general/blendminmax.c +++ b/tests/general/blendminmax.c @@ -118,7 +118,7 @@ piglit_display(void) pass = piglit_probe_pixel_rgb(15 + next_x * 3, piglit_height / 2, expected) && pass; - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/blendsquare.c b/tests/general/blendsquare.c index 8e23acf4..98b64570 100644 --- a/tests/general/blendsquare.c +++ b/tests/general/blendsquare.c @@ -83,7 +83,7 @@ piglit_display(void) pass = piglit_probe_pixel_rgb(15 + next_x * 3, piglit_height / 2, expected) && pass; - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/clear-varray-2.0.c b/tests/general/clear-varray-2.0.c index c6b8e780..697cd3f0 100644 --- a/tests/general/clear-varray-2.0.c +++ b/tests/general/clear-varray-2.0.c @@ -113,7 +113,7 @@ piglit_display(void) /* The second rectangle should have shown blue. */ pass = pass && piglit_probe_pixel_rgb(35, 15, blue); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/copypixels-draw-sync.c b/tests/general/copypixels-draw-sync.c index a75fd164..9b309754 100644 --- a/tests/general/copypixels-draw-sync.c +++ b/tests/general/copypixels-draw-sync.c @@ -63,7 +63,7 @@ piglit_display(void) pass = piglit_probe_rect_rgba(0, 0, piglit_width, piglit_height, green); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/copypixels-sync.c b/tests/general/copypixels-sync.c index 9df1a4cd..8feab923 100644 --- a/tests/general/copypixels-sync.c +++ b/tests/general/copypixels-sync.c @@ -68,7 +68,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/depth-clamp-range.c b/tests/general/depth-clamp-range.c index cd9a0920..a080e146 100644 --- a/tests/general/depth-clamp-range.c +++ b/tests/general/depth-clamp-range.c @@ -127,7 +127,7 @@ piglit_display(void) pass = piglit_probe_pixel_rgb(95, 15, white) && pass; pass = piglit_probe_pixel_rgb(95, 35, clear) && pass; - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/depth_clamp.c b/tests/general/depth_clamp.c index bf80f942..caa5e2b6 100644 --- a/tests/general/depth_clamp.c +++ b/tests/general/depth_clamp.c @@ -146,7 +146,7 @@ piglit_display(void) /* 8: clamped raster */ pass = piglit_probe_pixel_rgb(50, 90, white) && pass; - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/depthfunc.c b/tests/general/depthfunc.c index cbabf06c..10ccac00 100644 --- a/tests/general/depthfunc.c +++ b/tests/general/depthfunc.c @@ -121,7 +121,7 @@ piglit_display(void) i & 4 ? blue : green); } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/depthrange-clear.c b/tests/general/depthrange-clear.c index 95f5ff50..45c92e1e 100644 --- a/tests/general/depthrange-clear.c +++ b/tests/general/depthrange-clear.c @@ -127,7 +127,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/dlist-clear.c b/tests/general/dlist-clear.c index e07f2d1d..fd45141e 100644 --- a/tests/general/dlist-clear.c +++ b/tests/general/dlist-clear.c @@ -89,7 +89,7 @@ piglit_display(void) pass &= piglit_probe_rect_rgb(0, 20, piglit_width, piglit_height - 20, green); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/dlist-fdo3129-01.c b/tests/general/dlist-fdo3129-01.c index 4a7cb954..dabe7c31 100644 --- a/tests/general/dlist-fdo3129-01.c +++ b/tests/general/dlist-fdo3129-01.c @@ -75,7 +75,7 @@ piglit_display(void) result = PIGLIT_FAIL; } - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/general/dlist-fdo3129-02.c b/tests/general/dlist-fdo3129-02.c index fece8269..87752b23 100644 --- a/tests/general/dlist-fdo3129-02.c +++ b/tests/general/dlist-fdo3129-02.c @@ -74,7 +74,7 @@ piglit_display(void) result = PIGLIT_FAIL; } - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/general/dlist-fdo31590.c b/tests/general/dlist-fdo31590.c index 7629b22e..536cf393 100644 --- a/tests/general/dlist-fdo31590.c +++ b/tests/general/dlist-fdo31590.c @@ -122,7 +122,7 @@ piglit_display(void) return PIGLIT_FAIL; } - glutSwapBuffers(); + piglit_present_results(); return PIGLIT_PASS; } diff --git a/tests/general/draw-arrays-colormaterial.c b/tests/general/draw-arrays-colormaterial.c index 86355d60..acca789a 100644 --- a/tests/general/draw-arrays-colormaterial.c +++ b/tests/general/draw-arrays-colormaterial.c @@ -111,7 +111,7 @@ piglit_display(void) pass = GL_FALSE; } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/draw-batch.c b/tests/general/draw-batch.c index 87a097b6..c21b8b7b 100644 --- a/tests/general/draw-batch.c +++ b/tests/general/draw-batch.c @@ -198,6 +198,6 @@ piglit_display(void) pass = pass && piglit_probe_pixel_rgb(55, 105, c1); pass = pass && piglit_probe_pixel_rgb(75, 105, c2); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/draw-copypixels-sync.c b/tests/general/draw-copypixels-sync.c index d102a761..b7329a33 100644 --- a/tests/general/draw-copypixels-sync.c +++ b/tests/general/draw-copypixels-sync.c @@ -63,7 +63,7 @@ piglit_display(void) pass = piglit_probe_rect_rgba(0, 0, piglit_width, piglit_height, green); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/draw-elements-base-vertex-bounds.c b/tests/general/draw-elements-base-vertex-bounds.c index ba7e6805..09ca577c 100644 --- a/tests/general/draw-elements-base-vertex-bounds.c +++ b/tests/general/draw-elements-base-vertex-bounds.c @@ -116,7 +116,7 @@ piglit_display(void) pass = piglit_probe_pixel_rgb(piglit_width - 1, piglit_height - 1, test_colors[2]) && pass; pass = piglit_probe_pixel_rgb(0, piglit_height - 1, test_colors[3]) && pass; - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/draw-elements-base-vertex-neg.c b/tests/general/draw-elements-base-vertex-neg.c index bea22379..6e7b260b 100644 --- a/tests/general/draw-elements-base-vertex-neg.c +++ b/tests/general/draw-elements-base-vertex-neg.c @@ -133,7 +133,7 @@ enum piglit_result piglit_display(void) } glFinish(); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/draw-elements-base-vertex.c b/tests/general/draw-elements-base-vertex.c index 4695d08a..3b4e7328 100644 --- a/tests/general/draw-elements-base-vertex.c +++ b/tests/general/draw-elements-base-vertex.c @@ -145,7 +145,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/draw-elements-vs-inputs.c b/tests/general/draw-elements-vs-inputs.c index 3a837e4d..ff116269 100644 --- a/tests/general/draw-elements-vs-inputs.c +++ b/tests/general/draw-elements-vs-inputs.c @@ -170,7 +170,7 @@ piglit_display(void) pass = piglit_probe_pixel_rgb(x2, y, expected1) && pass; } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/draw-elements.c b/tests/general/draw-elements.c index 089a8a4c..b2bfbd5c 100644 --- a/tests/general/draw-elements.c +++ b/tests/general/draw-elements.c @@ -253,7 +253,7 @@ enum piglit_result } glFinish(); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/draw-instanced-divisor.c b/tests/general/draw-instanced-divisor.c index 3c37bb99..cac9fd71 100644 --- a/tests/general/draw-instanced-divisor.c +++ b/tests/general/draw-instanced-divisor.c @@ -125,7 +125,7 @@ test_instancing(GLuint divisor) TestName, i); fprintf(stderr, "%s: color instance divisor = %u\n", TestName, divisor); - glutSwapBuffers(); + piglit_present_results(); return GL_FALSE; } } @@ -134,7 +134,7 @@ test_instancing(GLuint divisor) glDisableClientState(GL_VERTEX_ARRAY); glDisableVertexAttribArray(ColorAttrib); - glutSwapBuffers(); + piglit_present_results(); return GL_TRUE; } diff --git a/tests/general/draw-instanced.c b/tests/general/draw-instanced.c index 6ddbaaa2..6a61f69b 100644 --- a/tests/general/draw-instanced.c +++ b/tests/general/draw-instanced.c @@ -124,13 +124,13 @@ test_instancing(void) if (!piglit_probe_pixel_rgba(pos[0], pos[1], Colors[i])) { fprintf(stderr, "%s: instance %d failed to draw correctly\n", TestName, i); - glutSwapBuffers(); + piglit_present_results(); return GL_FALSE; } } } - glutSwapBuffers(); + piglit_present_results(); return GL_TRUE; } diff --git a/tests/general/draw-sync.c b/tests/general/draw-sync.c index 42d6306b..262f505e 100644 --- a/tests/general/draw-sync.c +++ b/tests/general/draw-sync.c @@ -57,7 +57,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/draw-vertices-half-float.c b/tests/general/draw-vertices-half-float.c index 04b03ea5..b81b19c2 100644 --- a/tests/general/draw-vertices-half-float.c +++ b/tests/general/draw-vertices-half-float.c @@ -205,7 +205,7 @@ piglit_display(void) } glFinish(); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/draw-vertices.c b/tests/general/draw-vertices.c index 2f65c787..03d602e2 100644 --- a/tests/general/draw-vertices.c +++ b/tests/general/draw-vertices.c @@ -574,7 +574,7 @@ piglit_display(void) } glFinish(); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/early-z.c b/tests/general/early-z.c index 028d3b9f..036fe528 100644 --- a/tests/general/early-z.c +++ b/tests/general/early-z.c @@ -118,12 +118,12 @@ test_early_depth(void) glGetIntegerv(GL_CURRENT_RASTER_POSITION, pos); if (!piglit_probe_pixel_rgba(pos[0], pos[1], color)) { - glutSwapBuffers(); + piglit_present_results(); return GL_FALSE; } } - glutSwapBuffers(); + piglit_present_results(); return GL_TRUE; } diff --git a/tests/general/fog-modes.c b/tests/general/fog-modes.c index fcee9474..50fb0ed8 100644 --- a/tests/general/fog-modes.c +++ b/tests/general/fog-modes.c @@ -117,7 +117,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/fragment-center.c b/tests/general/fragment-center.c index 4d8c4947..924439e5 100644 --- a/tests/general/fragment-center.c +++ b/tests/general/fragment-center.c @@ -83,7 +83,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/framebuffer-srgb.c b/tests/general/framebuffer-srgb.c index a47b0dd0..96984b2f 100644 --- a/tests/general/framebuffer-srgb.c +++ b/tests/general/framebuffer-srgb.c @@ -192,7 +192,7 @@ framebuffer_srgb_non_fbo(void) if (!piglit_probe_rect_rgb(30, 30, 20, 20, expected_green)) pass = GL_FALSE; - glutSwapBuffers(); + piglit_present_results(); return pass; } @@ -327,7 +327,7 @@ framebuffer_srgb_fbo(void) glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0); draw_fbo(0, 0); - glutSwapBuffers(); + piglit_present_results(); glDeleteFramebuffersEXT(1, &fbo); return pass; } diff --git a/tests/general/hiz.c b/tests/general/hiz.c index 584f8328..508433eb 100644 --- a/tests/general/hiz.c +++ b/tests/general/hiz.c @@ -235,7 +235,7 @@ enum piglit_result piglit_display() GLboolean pass = GL_TRUE; pass = pass && test_less(); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/infinite-spot-light.c b/tests/general/infinite-spot-light.c index a08c5b96..485c66cf 100644 --- a/tests/general/infinite-spot-light.c +++ b/tests/general/infinite-spot-light.c @@ -66,7 +66,7 @@ piglit_display(void) pass = piglit_probe_pixel_rgba(0, 0, expected); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/line-aa-width.c b/tests/general/line-aa-width.c index 4f780ac0..8b47e10b 100644 --- a/tests/general/line-aa-width.c +++ b/tests/general/line-aa-width.c @@ -195,7 +195,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/linestipple.c b/tests/general/linestipple.c index 55b792cc..9a0707be 100644 --- a/tests/general/linestipple.c +++ b/tests/general/linestipple.c @@ -187,7 +187,7 @@ static void test(void) } glPopMatrix(); - glutSwapBuffers(); + piglit_present_results(); } diff --git a/tests/general/longprim.c b/tests/general/longprim.c index e7c0e7ec..fd45905c 100644 --- a/tests/general/longprim.c +++ b/tests/general/longprim.c @@ -91,7 +91,7 @@ test_prims(void) printf("%s: %s %u vertices\n", TestName, primNames[prim], len); glClear(GL_COLOR_BUFFER_BIT); draw(primTypes[prim], len); - glutSwapBuffers(); + piglit_present_results(); } } } diff --git a/tests/general/occlusion-query-discard.c b/tests/general/occlusion-query-discard.c index bc1cd1ad..4cf3de93 100644 --- a/tests/general/occlusion-query-discard.c +++ b/tests/general/occlusion-query-discard.c @@ -114,7 +114,7 @@ piglit_display(void) pass = pass && piglit_probe_rect_rgba(0, 0, piglit_width, piglit_height, green); - glutSwapBuffers(); + piglit_present_results(); glDeleteQueries(1, &q); glUseProgram(0); diff --git a/tests/general/occlusion_query.c b/tests/general/occlusion_query.c index 11b466e7..8f715b72 100644 --- a/tests/general/occlusion_query.c +++ b/tests/general/occlusion_query.c @@ -144,7 +144,7 @@ piglit_display(void) test_pass = do_test(0.0f, 0); test_pass &= do_test(85.0f, 1); - glutSwapBuffers(); + piglit_present_results(); return test_pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/oes-read-format.c b/tests/general/oes-read-format.c index 9b5495eb..b103d0b5 100644 --- a/tests/general/oes-read-format.c +++ b/tests/general/oes-read-format.c @@ -56,7 +56,7 @@ piglit_display(void) pass = glGetError() == 0; - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/pbo-drawpixels.c b/tests/general/pbo-drawpixels.c index 84588e04..a553203c 100644 --- a/tests/general/pbo-drawpixels.c +++ b/tests/general/pbo-drawpixels.c @@ -77,7 +77,7 @@ piglit_display(void) pass &= piglit_probe_pixel_rgb(10, 11, blue); pass &= piglit_probe_pixel_rgb(11, 11, red); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/pbo-read-argb8888.c b/tests/general/pbo-read-argb8888.c index 9639c70c..46e3521a 100644 --- a/tests/general/pbo-read-argb8888.c +++ b/tests/general/pbo-read-argb8888.c @@ -77,7 +77,7 @@ piglit_display(void) glReadPixels(piglit_width - 10, 10, 1, 1, GL_BGRA, GL_UNSIGNED_BYTE, (void *)(uintptr_t)4); - glutSwapBuffers(); + piglit_present_results(); addr = glMapBufferARB(GL_PIXEL_PACK_BUFFER, GL_READ_ONLY_ARB); diff --git a/tests/general/pbo-readpixels-small.c b/tests/general/pbo-readpixels-small.c index a4b008b9..1fa11537 100644 --- a/tests/general/pbo-readpixels-small.c +++ b/tests/general/pbo-readpixels-small.c @@ -105,7 +105,7 @@ piglit_display(void) pass &= probe(1, 1, 0x000000ff, addr[1]); glUnmapBufferARB(GL_PIXEL_PACK_BUFFER); - glutSwapBuffers(); + piglit_present_results(); glDeleteBuffersARB(1, &pbo); diff --git a/tests/general/pbo-teximage-tiling-2.c b/tests/general/pbo-teximage-tiling-2.c index 0c37d848..c9cc82b4 100644 --- a/tests/general/pbo-teximage-tiling-2.c +++ b/tests/general/pbo-teximage-tiling-2.c @@ -96,7 +96,7 @@ piglit_display(void) pass &= piglit_probe_pixel_rgb(12, 18, blue); pass &= piglit_probe_pixel_rgb(18, 18, white); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/pbo-teximage-tiling.c b/tests/general/pbo-teximage-tiling.c index b43f47e7..f746f942 100644 --- a/tests/general/pbo-teximage-tiling.c +++ b/tests/general/pbo-teximage-tiling.c @@ -96,7 +96,7 @@ piglit_display(void) pass &= piglit_probe_pixel_rgb(12, 18, blue); pass &= piglit_probe_pixel_rgb(18, 18, white); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/pbo-teximage.c b/tests/general/pbo-teximage.c index 7b2343ec..f1134f52 100644 --- a/tests/general/pbo-teximage.c +++ b/tests/general/pbo-teximage.c @@ -88,7 +88,7 @@ piglit_display(void) pass &= piglit_probe_pixel_rgb(12, 18, blue); pass &= piglit_probe_pixel_rgb(18, 18, red); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/point-line-no-cull.c b/tests/general/point-line-no-cull.c index 6c5b5dc6..a2ef6346 100644 --- a/tests/general/point-line-no-cull.c +++ b/tests/general/point-line-no-cull.c @@ -426,7 +426,7 @@ piglit_display(void) pass = test_lines_no_pgonmode() && pass; pass = test_points_no_pgonmode() && pass; - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/polygon-mode.c b/tests/general/polygon-mode.c index c0e6bfa3..81d8956f 100644 --- a/tests/general/polygon-mode.c +++ b/tests/general/polygon-mode.c @@ -281,7 +281,7 @@ test_combo(GLenum frontMode, GLenum backMode) } } - glutSwapBuffers(); + piglit_present_results(); return pass; } diff --git a/tests/general/pos-array.c b/tests/general/pos-array.c index 291d5b36..6c91fa8c 100644 --- a/tests/general/pos-array.c +++ b/tests/general/pos-array.c @@ -92,7 +92,7 @@ test_fixedfunc_arrays(void) glDrawArrays(GL_QUADS, 0, 4); p = piglit_probe_pixel_rgba(piglit_width/2, piglit_height/2, expected); - glutSwapBuffers(); + piglit_present_results(); if (!p) { printf("%s: failed when drawing with ", TestName); printf("conventional vertex arrays\n"); @@ -122,7 +122,7 @@ test_fixedfunc_arrays(void) glDrawArrays(GL_QUADS, 0, 4); p = piglit_probe_pixel_rgba(piglit_width/2, piglit_height/2, expected); - glutSwapBuffers(); + piglit_present_results(); if (!p) { printf("%s: failed when drawing with ", TestName); printf("generic array [%u]\n", attrib); @@ -149,7 +149,7 @@ test_fixedfunc_arrays(void) glDrawArrays(GL_QUADS, 0, 4); p = piglit_probe_pixel_rgba(piglit_width/2, piglit_height/2, black); - glutSwapBuffers(); + piglit_present_results(); if (!p) { printf("%s: failed when drawing with ", TestName); printf("generic array [%u]\n", attrib); @@ -160,7 +160,7 @@ test_fixedfunc_arrays(void) glDisableClientState(GL_COLOR_ARRAY); } - glutSwapBuffers(); + piglit_present_results(); glDeleteBuffersARB(1, &buf); @@ -226,7 +226,7 @@ test_glsl_arrays(void) glDrawArrays(GL_QUADS, 0, 4); p = piglit_probe_pixel_rgba(piglit_width/2, piglit_height/2, expected); - glutSwapBuffers(); + piglit_present_results(); if (!p) { printf("%s: failed when drawing with ", TestName); printf("compiler-assigned attribute locations\n"); @@ -261,7 +261,7 @@ test_glsl_arrays(void) glDrawArrays(GL_QUADS, 0, 4); p = piglit_probe_pixel_rgba(piglit_width/2, piglit_height/2, expected); - glutSwapBuffers(); + piglit_present_results(); if (!p) { printf("%s: failed when drawing with ", TestName); printf("user-assigned attribute locations\n"); @@ -319,7 +319,7 @@ test_glsl_no_arrays(void) glPointSize(1.0); p = piglit_probe_pixel_rgba(piglit_width/2, piglit_height/2, expected); - glutSwapBuffers(); + piglit_present_results(); if (!p) { printf("%s: failed when drawing with GLSL and no vertex arrays\n", TestName); @@ -412,7 +412,7 @@ test_arbvp_arrays(void) glDrawArrays(GL_QUADS, 0, 4); p = piglit_probe_pixel_rgba(piglit_width/2, piglit_height/2, expected); - glutSwapBuffers(); + piglit_present_results(); if (!p) { printf("%s: failed when drawing with ", TestName); printf("ARB VP and conventional vertex arrays\n"); @@ -443,7 +443,7 @@ test_arbvp_arrays(void) glDrawArrays(GL_QUADS, 0, 4); p = piglit_probe_pixel_rgba(piglit_width/2, piglit_height/2, expected); - glutSwapBuffers(); + piglit_present_results(); if (!p) { printf("%s: failed when drawing with ", TestName); printf("ARB VP and generic vertex array[%u]\n", attrib); @@ -474,7 +474,7 @@ test_arbvp_arrays(void) glDrawArrays(GL_QUADS, 0, 4); p = piglit_probe_pixel_rgba(piglit_width/2, piglit_height/2, expected); - glutSwapBuffers(); + piglit_present_results(); if (!p) { printf("%s: failed when drawing with ", TestName); printf("ARB VP and generic vertex array[%u]\n", attrib); diff --git a/tests/general/provoking-vertex.c b/tests/general/provoking-vertex.c index cdd362a9..ea4cb5fd 100644 --- a/tests/general/provoking-vertex.c +++ b/tests/general/provoking-vertex.c @@ -82,7 +82,7 @@ piglit_display(void) pass = pass && piglit_probe_pixel_rgb(225, 130, blue); glFinish(); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/scissor-bitmap.c b/tests/general/scissor-bitmap.c index 01db475b..31be1ddf 100644 --- a/tests/general/scissor-bitmap.c +++ b/tests/general/scissor-bitmap.c @@ -291,7 +291,7 @@ piglit_display() pass = pass && verify_bitmap_contents(&probes, i); } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/scissor-clear.c b/tests/general/scissor-clear.c index 4a6fcd41..6a732b1e 100644 --- a/tests/general/scissor-clear.c +++ b/tests/general/scissor-clear.c @@ -63,7 +63,7 @@ piglit_display(void) pass &= piglit_probe_rect_rgb(0, 20, piglit_width, piglit_height - 20, green); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/scissor-copypixels.c b/tests/general/scissor-copypixels.c index e21b9d44..590b8b12 100644 --- a/tests/general/scissor-copypixels.c +++ b/tests/general/scissor-copypixels.c @@ -103,7 +103,7 @@ piglit_display(void) pass &= check_red_box_surrounded_by_green(dst_x, 30, 0, 0); pass &= check_red_box_surrounded_by_green(dst_x, 50, dst_w, dst_h); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/scissor-depth-clear.c b/tests/general/scissor-depth-clear.c index dd8aa50b..64b87f92 100644 --- a/tests/general/scissor-depth-clear.c +++ b/tests/general/scissor-depth-clear.c @@ -81,7 +81,7 @@ piglit_display(void) pass &= piglit_probe_rect_rgb(0, 20, piglit_width, piglit_height - 20, green); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/scissor-many.c b/tests/general/scissor-many.c index 5162e02a..31147a80 100644 --- a/tests/general/scissor-many.c +++ b/tests/general/scissor-many.c @@ -61,7 +61,7 @@ piglit_display(void) pass &= piglit_probe_rect_rgb(0, 0, piglit_width, piglit_height, green); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/scissor-offscreen.c b/tests/general/scissor-offscreen.c index 63d0fbeb..d3b97a82 100644 --- a/tests/general/scissor-offscreen.c +++ b/tests/general/scissor-offscreen.c @@ -70,7 +70,7 @@ piglit_display(void) pass = pass && piglit_probe_pixel_rgb(piglit_width - 1, piglit_height - 1, window_color) && pass; - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/scissor-stencil-clear.c b/tests/general/scissor-stencil-clear.c index 2ee6e3ed..a13f4e7c 100644 --- a/tests/general/scissor-stencil-clear.c +++ b/tests/general/scissor-stencil-clear.c @@ -92,7 +92,7 @@ piglit_display(void) pass &= piglit_probe_rect_rgb(0, 20, piglit_width, piglit_height - 20, green); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/stencil-drawpixels.c b/tests/general/stencil-drawpixels.c index beae4189..d39f09c8 100644 --- a/tests/general/stencil-drawpixels.c +++ b/tests/general/stencil-drawpixels.c @@ -101,7 +101,7 @@ piglit_display(void) pass &= piglit_probe_rect_rgb(0, 20, piglit_width, piglit_height - 20, red); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/stencil-twoside.c b/tests/general/stencil-twoside.c index 240e5ac2..d68c55df 100644 --- a/tests/general/stencil-twoside.c +++ b/tests/general/stencil-twoside.c @@ -212,7 +212,7 @@ piglit_display(void) pass = piglit_probe_pixel_rgb(w * 9.5, piglit_height / 2, expected); pass = piglit_probe_pixel_rgb(w * 11.5, piglit_height / 2, expected); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/stencil-wrap.c b/tests/general/stencil-wrap.c index e9c3040b..8f26f5d0 100644 --- a/tests/general/stencil-wrap.c +++ b/tests/general/stencil-wrap.c @@ -137,7 +137,7 @@ piglit_display(void) pass = piglit_probe_pixel_rgb(w * 7.5, piglit_height / 2, expected); pass = piglit_probe_pixel_rgb(w * 9.5, piglit_height / 2, expected); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/texgen.c b/tests/general/texgen.c index 020657f7..48eee523 100644 --- a/tests/general/texgen.c +++ b/tests/general/texgen.c @@ -89,7 +89,7 @@ static void test_sanity(void) probe_cell("test_sanity", x, y, TextureData[y][x]); } - glutSwapBuffers(); + piglit_present_results(); } static void do_test_texgen_eye(const char* testname) @@ -148,7 +148,7 @@ static void do_test_texgen_eye(const char* testname) probe_cell(testname, x, y, TextureData[y+1][x+1]); } - glutSwapBuffers(); + piglit_present_results(); } static void test_texgen_eye(void) diff --git a/tests/general/timer_query.c b/tests/general/timer_query.c index 72649528..6ae494e7 100644 --- a/tests/general/timer_query.c +++ b/tests/general/timer_query.c @@ -108,7 +108,7 @@ piglit_display(void) /*printf("nsecs = %d %ld\n", nsecs, (long int) nsecs64);*/ - glutSwapBuffers(); + piglit_present_results(); return PIGLIT_PASS; } diff --git a/tests/general/two-sided-lighting-separate-specular.c b/tests/general/two-sided-lighting-separate-specular.c index 3aa38619..f660dff8 100644 --- a/tests/general/two-sided-lighting-separate-specular.c +++ b/tests/general/two-sided-lighting-separate-specular.c @@ -98,7 +98,7 @@ piglit_display(void) pass = piglit_probe_pixel_rgb(x0, y1, purple) && pass; pass = piglit_probe_pixel_rgb(x1, y1, yellow) && pass; - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/two-sided-lighting.c b/tests/general/two-sided-lighting.c index 3c0673d3..13084008 100644 --- a/tests/general/two-sided-lighting.c +++ b/tests/general/two-sided-lighting.c @@ -95,7 +95,7 @@ piglit_display(void) pass = piglit_probe_pixel_rgb(x0, y1, blue) && pass; pass = piglit_probe_pixel_rgb(x1, y1, green) && pass; - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/user-clip.c b/tests/general/user-clip.c index b5d6266c..553fdd9a 100644 --- a/tests/general/user-clip.c +++ b/tests/general/user-clip.c @@ -64,7 +64,7 @@ piglit_display(void) result = PIGLIT_FAIL; } - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/general/varray-disabled.c b/tests/general/varray-disabled.c index 709c86ab..02e16259 100644 --- a/tests/general/varray-disabled.c +++ b/tests/general/varray-disabled.c @@ -125,7 +125,7 @@ piglit_display(void) pass &= piglit_probe_pixel_rgb(piglit_width * 5 / 6, piglit_height / 2, blue); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/general/vbo-bufferdata.c b/tests/general/vbo-bufferdata.c index 7d8bda15..9a8dbbcb 100644 --- a/tests/general/vbo-bufferdata.c +++ b/tests/general/vbo-bufferdata.c @@ -86,7 +86,7 @@ piglit_display(void) pass = pass && piglit_probe_pixel_rgb(250, 150, white); pass = pass && piglit_probe_pixel_rgb(150, 150, white); - glutSwapBuffers(); + piglit_present_results(); glDisableClientState(GL_VERTEX_ARRAY); diff --git a/tests/general/vbo-map-remap.c b/tests/general/vbo-map-remap.c index 870a4f2f..db48eda3 100644 --- a/tests/general/vbo-map-remap.c +++ b/tests/general/vbo-map-remap.c @@ -97,7 +97,7 @@ piglit_display(void) pass = pass && piglit_probe_pixel_rgb(250, 150, white); pass = pass && piglit_probe_pixel_rgb(150, 150, white); - glutSwapBuffers(); + piglit_present_results(); glDisableClientState(GL_VERTEX_ARRAY); diff --git a/tests/general/vbo-subdata-sync.c b/tests/general/vbo-subdata-sync.c index b8d3d085..f9e1f47e 100644 --- a/tests/general/vbo-subdata-sync.c +++ b/tests/general/vbo-subdata-sync.c @@ -89,7 +89,7 @@ piglit_display(void) pass = pass && piglit_probe_pixel_rgb(250, 150, white); pass = pass && piglit_probe_pixel_rgb(150, 150, white); - glutSwapBuffers(); + piglit_present_results(); glDisableClientState(GL_VERTEX_ARRAY); diff --git a/tests/general/vbo-subdata-zero.c b/tests/general/vbo-subdata-zero.c index e8149558..e3af70ea 100644 --- a/tests/general/vbo-subdata-zero.c +++ b/tests/general/vbo-subdata-zero.c @@ -98,7 +98,7 @@ piglit_display(void) pass = pass && piglit_probe_pixel_rgb(250, 150, white); pass = pass && piglit_probe_pixel_rgb(150, 150, white); - glutSwapBuffers(); + piglit_present_results(); glDisableClientState(GL_VERTEX_ARRAY); diff --git a/tests/general/vs-point_size-zero.c b/tests/general/vs-point_size-zero.c index c1f41754..8fd596ef 100644 --- a/tests/general/vs-point_size-zero.c +++ b/tests/general/vs-point_size-zero.c @@ -60,7 +60,7 @@ piglit_display(void) if (!pass) puts("Fail: nothing rendered."); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/hiz/hiz-util.c b/tests/hiz/hiz-util.c index 22b198a5..6c6404e1 100644 --- a/tests/hiz/hiz-util.c +++ b/tests/hiz/hiz-util.c @@ -258,7 +258,7 @@ hiz_run_test_depth_test_fbo(const struct hiz_fbo_options *fbo_options) glBlitFramebuffer(0, 0, piglit_width, piglit_height, 0, 0, piglit_width, piglit_height, GL_COLOR_BUFFER_BIT, GL_NEAREST); - glutSwapBuffers(); + piglit_present_results(); glBindFramebuffer(GL_DRAW_FRAMEBUFFER, fbo); } @@ -272,7 +272,7 @@ hiz_run_test_depth_test_window() { bool pass = hiz_run_test_depth_test_common(); if (!piglit_automatic) - glutSwapBuffers(); + piglit_present_results(); return pass; } @@ -362,7 +362,7 @@ hiz_run_test_depth_read_fbo(const struct hiz_fbo_options *fbo_options) glBlitFramebuffer(0, 0, piglit_width, piglit_height, 0, 0, piglit_width, piglit_height, GL_COLOR_BUFFER_BIT, GL_NEAREST); - glutSwapBuffers(); + piglit_present_results(); glBindFramebuffer(GL_DRAW_FRAMEBUFFER, fbo); } @@ -376,7 +376,7 @@ hiz_run_test_depth_read_window() { bool pass = hiz_run_test_depth_read_common(); if (!piglit_automatic) - glutSwapBuffers(); + piglit_present_results(); return pass; } @@ -469,7 +469,7 @@ hiz_run_test_stencil_test_fbo(const struct hiz_fbo_options *fbo_options) glBlitFramebuffer(0, 0, piglit_width, piglit_height, 0, 0, piglit_width, piglit_height, GL_COLOR_BUFFER_BIT, GL_NEAREST); - glutSwapBuffers(); + piglit_present_results(); glBindFramebuffer(GL_DRAW_FRAMEBUFFER, fbo); } @@ -483,7 +483,7 @@ hiz_run_test_stencil_test_window() { bool pass = hiz_run_test_stencil_test_common(); if (!piglit_automatic) - glutSwapBuffers(); + piglit_present_results(); return pass; } @@ -584,7 +584,7 @@ hiz_run_test_stencil_read_fbo(const struct hiz_fbo_options *fbo_options) glBlitFramebuffer(0, 0, piglit_width, piglit_height, 0, 0, piglit_width, piglit_height, GL_COLOR_BUFFER_BIT, GL_NEAREST); - glutSwapBuffers(); + piglit_present_results(); glBindFramebuffer(GL_DRAW_FRAMEBUFFER, fbo); } @@ -598,7 +598,7 @@ hiz_run_test_stencil_read_window() { bool pass = hiz_run_test_stencil_read_common(); if (!piglit_automatic) - glutSwapBuffers(); + piglit_present_results(); return pass; } @@ -708,7 +708,7 @@ hiz_run_test_depth_stencil_test_fbo(const struct hiz_fbo_options *fbo_options) glBlitFramebuffer(0, 0, piglit_width, piglit_height, 0, 0, piglit_width, piglit_height, GL_COLOR_BUFFER_BIT, GL_NEAREST); - glutSwapBuffers(); + piglit_present_results(); glBindFramebuffer(GL_DRAW_FRAMEBUFFER, fbo); } diff --git a/tests/shaders/attribute0.c b/tests/shaders/attribute0.c index d3bdf9c0..e8643251 100644 --- a/tests/shaders/attribute0.c +++ b/tests/shaders/attribute0.c @@ -64,7 +64,7 @@ piglit_display(void) assert(!glGetError()); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/fp-abs-01.c b/tests/shaders/fp-abs-01.c index d8ee2551..8de36cd4 100644 --- a/tests/shaders/fp-abs-01.c +++ b/tests/shaders/fp-abs-01.c @@ -139,7 +139,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/shaders/fp-abs-02.c b/tests/shaders/fp-abs-02.c index 83b9e91e..a2c5095a 100644 --- a/tests/shaders/fp-abs-02.c +++ b/tests/shaders/fp-abs-02.c @@ -161,7 +161,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/shaders/fp-condition_codes-01.c b/tests/shaders/fp-condition_codes-01.c index ababf148..8f016834 100644 --- a/tests/shaders/fp-condition_codes-01.c +++ b/tests/shaders/fp-condition_codes-01.c @@ -229,7 +229,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/shaders/fp-fog.c b/tests/shaders/fp-fog.c index d5292714..23515443 100644 --- a/tests/shaders/fp-fog.c +++ b/tests/shaders/fp-fog.c @@ -107,7 +107,7 @@ piglit_display(void) expected_color); } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/fp-formats.c b/tests/shaders/fp-formats.c index 63779ffb..db2ca74e 100644 --- a/tests/shaders/fp-formats.c +++ b/tests/shaders/fp-formats.c @@ -69,7 +69,7 @@ piglit_display(void) expected)) result = PIGLIT_FAIL; - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/shaders/fp-fragment-position.c b/tests/shaders/fp-fragment-position.c index a3cbd891..3a135ba1 100644 --- a/tests/shaders/fp-fragment-position.c +++ b/tests/shaders/fp-fragment-position.c @@ -252,7 +252,7 @@ piglit_display(void) pass = DoTest(); if (!piglit_automatic) - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/fp-incomplete-tex.c b/tests/shaders/fp-incomplete-tex.c index 665f7d73..3605d23f 100644 --- a/tests/shaders/fp-incomplete-tex.c +++ b/tests/shaders/fp-incomplete-tex.c @@ -179,7 +179,7 @@ piglit_display(void) DoFrame(); pass = DoTest(); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/fp-kil.c b/tests/shaders/fp-kil.c index 117114a2..06e93f31 100644 --- a/tests/shaders/fp-kil.c +++ b/tests/shaders/fp-kil.c @@ -253,7 +253,7 @@ piglit_display(void) DoFrame(); pass = DoTest(); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/fp-lit-mask.c b/tests/shaders/fp-lit-mask.c index 217e0ee5..4cc50229 100644 --- a/tests/shaders/fp-lit-mask.c +++ b/tests/shaders/fp-lit-mask.c @@ -114,7 +114,7 @@ piglit_display(void) DoFrame(); pass = DoTest(); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/fp-lit-src-equals-dst.c b/tests/shaders/fp-lit-src-equals-dst.c index 052d02e8..49ffcaa2 100644 --- a/tests/shaders/fp-lit-src-equals-dst.c +++ b/tests/shaders/fp-lit-src-equals-dst.c @@ -108,7 +108,7 @@ piglit_display(void) DoFrame(); pass = DoTest(); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/fp-rfl.c b/tests/shaders/fp-rfl.c index 4c644925..b61c8a31 100644 --- a/tests/shaders/fp-rfl.c +++ b/tests/shaders/fp-rfl.c @@ -165,7 +165,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/shaders/fp-set-01.c b/tests/shaders/fp-set-01.c index a5280e9f..72a0968c 100644 --- a/tests/shaders/fp-set-01.c +++ b/tests/shaders/fp-set-01.c @@ -126,7 +126,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/shaders/fp-set-02.c b/tests/shaders/fp-set-02.c index 5b019b4a..fff001f2 100644 --- a/tests/shaders/fp-set-02.c +++ b/tests/shaders/fp-set-02.c @@ -222,7 +222,7 @@ piglit_display(void) } - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/shaders/fp-unpack-01.c b/tests/shaders/fp-unpack-01.c index ef2e7d24..4d8988e5 100644 --- a/tests/shaders/fp-unpack-01.c +++ b/tests/shaders/fp-unpack-01.c @@ -281,7 +281,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/shaders/glsl-arb-fragment-coord-conventions-define.c b/tests/shaders/glsl-arb-fragment-coord-conventions-define.c index 405ccdde..42a9c041 100644 --- a/tests/shaders/glsl-arb-fragment-coord-conventions-define.c +++ b/tests/shaders/glsl-arb-fragment-coord-conventions-define.c @@ -53,7 +53,7 @@ piglit_display(void) pass &= piglit_probe_pixel_rgb(15, 15, green); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-arb-fragment-coord-conventions.c b/tests/shaders/glsl-arb-fragment-coord-conventions.c index 0f9e71ed..a403996f 100644 --- a/tests/shaders/glsl-arb-fragment-coord-conventions.c +++ b/tests/shaders/glsl-arb-fragment-coord-conventions.c @@ -201,7 +201,7 @@ piglit_display(void) pass = piglit_probe_pixel_rgb(99, 99, color2) && pass; } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-bindattriblocation.c b/tests/shaders/glsl-bindattriblocation.c index 8e8cc3e3..62b0f13c 100644 --- a/tests/shaders/glsl-bindattriblocation.c +++ b/tests/shaders/glsl-bindattriblocation.c @@ -116,7 +116,7 @@ piglit_display(void) glDisableVertexAttribArray(attrib_loc); - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/shaders/glsl-bug-22603.c b/tests/shaders/glsl-bug-22603.c index 7d44fbd8..95f16db8 100644 --- a/tests/shaders/glsl-bug-22603.c +++ b/tests/shaders/glsl-bug-22603.c @@ -158,7 +158,7 @@ piglit_display(void) /* check that rect2 where less than rect1 is rendered */ pass &= piglit_probe_pixel_rgb(450, 250, rect2_color_bottom_rect1); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-cos.c b/tests/shaders/glsl-cos.c index c7370fb9..3390dced 100644 --- a/tests/shaders/glsl-cos.c +++ b/tests/shaders/glsl-cos.c @@ -104,7 +104,7 @@ enum piglit_result piglit_display(void) pass = test(); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-deriv-varyings.c b/tests/shaders/glsl-deriv-varyings.c index d707fff0..7a8c81f0 100644 --- a/tests/shaders/glsl-deriv-varyings.c +++ b/tests/shaders/glsl-deriv-varyings.c @@ -237,7 +237,7 @@ piglit_display(void) pass = pass && piglit_probe_pixel_rgb(205, 125, deriv); glFinish(); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-derivs.c b/tests/shaders/glsl-derivs.c index 943af49a..76e926a4 100644 --- a/tests/shaders/glsl-derivs.c +++ b/tests/shaders/glsl-derivs.c @@ -236,7 +236,7 @@ piglit_display(void) pass = pass && piglit_probe_pixel_rgb(205, 125, deriv); glFinish(); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-fs-bug25902.c b/tests/shaders/glsl-fs-bug25902.c index 9efc59cf..743e615c 100644 --- a/tests/shaders/glsl-fs-bug25902.c +++ b/tests/shaders/glsl-fs-bug25902.c @@ -62,7 +62,7 @@ piglit_display(void) pass &= piglit_probe_pixel_rgb(12, 17, args); pass &= piglit_probe_pixel_rgb(17, 17, black); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-fs-color-matrix.c b/tests/shaders/glsl-fs-color-matrix.c index a63a3e24..d3982754 100644 --- a/tests/shaders/glsl-fs-color-matrix.c +++ b/tests/shaders/glsl-fs-color-matrix.c @@ -114,7 +114,7 @@ piglit_display(void) white) && pass; - glutSwapBuffers(); + piglit_present_results(); glDeleteTextures(1, &tex); diff --git a/tests/shaders/glsl-fs-discard-02.c b/tests/shaders/glsl-fs-discard-02.c index 0ae9a7fa..278b0f48 100644 --- a/tests/shaders/glsl-fs-discard-02.c +++ b/tests/shaders/glsl-fs-discard-02.c @@ -107,7 +107,7 @@ enum piglit_result piglit_display(void) pass = test(); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-fs-exp2.c b/tests/shaders/glsl-fs-exp2.c index cd8b863f..862ae90e 100644 --- a/tests/shaders/glsl-fs-exp2.c +++ b/tests/shaders/glsl-fs-exp2.c @@ -58,7 +58,7 @@ piglit_display(void) pass &= piglit_probe_pixel_rgb(15, 15, gray); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-fs-flat-color.c b/tests/shaders/glsl-fs-flat-color.c index 124ba121..1ad92857 100644 --- a/tests/shaders/glsl-fs-flat-color.c +++ b/tests/shaders/glsl-fs-flat-color.c @@ -86,7 +86,7 @@ piglit_display(void) result = PIGLIT_FAIL; if (!piglit_automatic) - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/shaders/glsl-fs-fogcolor-statechange.c b/tests/shaders/glsl-fs-fogcolor-statechange.c index 2895d4a5..d3374c2c 100644 --- a/tests/shaders/glsl-fs-fogcolor-statechange.c +++ b/tests/shaders/glsl-fs-fogcolor-statechange.c @@ -57,7 +57,7 @@ piglit_display(void) piglit_width / 2, piglit_height, blue); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-fs-fragcoord-zw-ortho.c b/tests/shaders/glsl-fs-fragcoord-zw-ortho.c index 0c90dfe5..bdde679b 100644 --- a/tests/shaders/glsl-fs-fragcoord-zw-ortho.c +++ b/tests/shaders/glsl-fs-fragcoord-zw-ortho.c @@ -105,7 +105,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-fs-fragcoord-zw-perspective.c b/tests/shaders/glsl-fs-fragcoord-zw-perspective.c index 4a5131f0..b00f23ac 100644 --- a/tests/shaders/glsl-fs-fragcoord-zw-perspective.c +++ b/tests/shaders/glsl-fs-fragcoord-zw-perspective.c @@ -127,7 +127,7 @@ piglit_display(void) pass = piglit_probe_pixel_rgb(piglit_width/2, y, expected) & pass; } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-fs-fragcoord.c b/tests/shaders/glsl-fs-fragcoord.c index 928f2f08..3e06d566 100644 --- a/tests/shaders/glsl-fs-fragcoord.c +++ b/tests/shaders/glsl-fs-fragcoord.c @@ -64,7 +64,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-fs-loop-nested.c b/tests/shaders/glsl-fs-loop-nested.c index dc6deb19..e6a70c48 100644 --- a/tests/shaders/glsl-fs-loop-nested.c +++ b/tests/shaders/glsl-fs-loop-nested.c @@ -91,7 +91,7 @@ piglit_display(void) } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-fs-loop.c b/tests/shaders/glsl-fs-loop.c index 79d2390d..c86fa8ac 100644 --- a/tests/shaders/glsl-fs-loop.c +++ b/tests/shaders/glsl-fs-loop.c @@ -89,7 +89,7 @@ piglit_display(void) } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-fs-mix-constant.c b/tests/shaders/glsl-fs-mix-constant.c index 1b41d3ca..db10bbd4 100644 --- a/tests/shaders/glsl-fs-mix-constant.c +++ b/tests/shaders/glsl-fs-mix-constant.c @@ -53,7 +53,7 @@ piglit_display(void) pass &= piglit_probe_pixel_rgba(15, 15, gray); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-fs-mix.c b/tests/shaders/glsl-fs-mix.c index 472db6e9..fb24b525 100644 --- a/tests/shaders/glsl-fs-mix.c +++ b/tests/shaders/glsl-fs-mix.c @@ -60,7 +60,7 @@ piglit_display(void) pass &= piglit_probe_pixel_rgba(15, 15, gray); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-fs-pointcoord.c b/tests/shaders/glsl-fs-pointcoord.c index 00b34557..707475a7 100644 --- a/tests/shaders/glsl-fs-pointcoord.c +++ b/tests/shaders/glsl-fs-pointcoord.c @@ -76,7 +76,7 @@ piglit_display(void) pass = pass && piglit_probe_pixel_rgb(0, point_size - 1, black); pass = pass && piglit_probe_pixel_rgb(point_size - 1, point_size - 1, red); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-fs-raytrace-bug27060.c b/tests/shaders/glsl-fs-raytrace-bug27060.c index a40f4e55..ad7d801f 100644 --- a/tests/shaders/glsl-fs-raytrace-bug27060.c +++ b/tests/shaders/glsl-fs-raytrace-bug27060.c @@ -268,7 +268,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return ((float)passed_cnt > (1.0F-failing_pixel_percentage) *piglit_width*piglit_height) diff --git a/tests/shaders/glsl-fs-sampler-numbering.c b/tests/shaders/glsl-fs-sampler-numbering.c index 4f36e803..6eedf006 100644 --- a/tests/shaders/glsl-fs-sampler-numbering.c +++ b/tests/shaders/glsl-fs-sampler-numbering.c @@ -62,7 +62,7 @@ piglit_display(void) pass &= piglit_probe_pixel_rgb(x1, y2, white); pass &= piglit_probe_pixel_rgb(x2, y2, black); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-fs-shader-stencil-export.c b/tests/shaders/glsl-fs-shader-stencil-export.c index 94d8333b..7d2a66c4 100644 --- a/tests/shaders/glsl-fs-shader-stencil-export.c +++ b/tests/shaders/glsl-fs-shader-stencil-export.c @@ -53,7 +53,7 @@ piglit_display(void) piglit_draw_rect(0, 0, piglit_width, piglit_height); glReadPixels(0, 0, 3, 1, GL_STENCIL_INDEX, GL_FLOAT, p); - glutSwapBuffers(); + piglit_present_results(); /* we hardcode 129 in the shader */ if (p[0] != 129) diff --git a/tests/shaders/glsl-fs-sqrt-branch.c b/tests/shaders/glsl-fs-sqrt-branch.c index e32c7e48..67ed2aa5 100644 --- a/tests/shaders/glsl-fs-sqrt-branch.c +++ b/tests/shaders/glsl-fs-sqrt-branch.c @@ -58,7 +58,7 @@ piglit_display(void) pass &= piglit_probe_pixel_rgb(15, 15, result); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-fs-texture2drect.c b/tests/shaders/glsl-fs-texture2drect.c index 294388c2..94f571a7 100644 --- a/tests/shaders/glsl-fs-texture2drect.c +++ b/tests/shaders/glsl-fs-texture2drect.c @@ -121,7 +121,7 @@ piglit_display(void) glDeleteTextures(1, &tex); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-fs-texturecube-2.c b/tests/shaders/glsl-fs-texturecube-2.c index bdf88c4b..3b84f5c9 100644 --- a/tests/shaders/glsl-fs-texturecube-2.c +++ b/tests/shaders/glsl-fs-texturecube-2.c @@ -186,7 +186,7 @@ piglit_display(void) glDeleteTextures(1, &tex); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-fs-texturecube.c b/tests/shaders/glsl-fs-texturecube.c index 6c3bb389..cf0b7be5 100644 --- a/tests/shaders/glsl-fs-texturecube.c +++ b/tests/shaders/glsl-fs-texturecube.c @@ -149,7 +149,7 @@ piglit_display(void) glDeleteTextures(1, &tex); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-fs-textureenvcolor-statechange.c b/tests/shaders/glsl-fs-textureenvcolor-statechange.c index 1a89805c..681d8ef5 100644 --- a/tests/shaders/glsl-fs-textureenvcolor-statechange.c +++ b/tests/shaders/glsl-fs-textureenvcolor-statechange.c @@ -57,7 +57,7 @@ piglit_display(void) piglit_width / 2, piglit_height, blue); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-fs-user-varying-ff.c b/tests/shaders/glsl-fs-user-varying-ff.c index e1143ab3..bdb44194 100644 --- a/tests/shaders/glsl-fs-user-varying-ff.c +++ b/tests/shaders/glsl-fs-user-varying-ff.c @@ -63,7 +63,7 @@ piglit_display(void) result = PIGLIT_FAIL; if (!piglit_automatic) - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/shaders/glsl-fwidth.c b/tests/shaders/glsl-fwidth.c index 75ed26ca..ca36512b 100644 --- a/tests/shaders/glsl-fwidth.c +++ b/tests/shaders/glsl-fwidth.c @@ -234,7 +234,7 @@ piglit_display(void) pass = pass && piglit_probe_pixel_rgb(205, 125, mostlyBlack); glFinish(); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-getattriblocation.c b/tests/shaders/glsl-getattriblocation.c index 63ac3549..4860cf1d 100644 --- a/tests/shaders/glsl-getattriblocation.c +++ b/tests/shaders/glsl-getattriblocation.c @@ -106,7 +106,7 @@ piglit_display(void) glDisableVertexAttribArray(attrib_loc); - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/shaders/glsl-kwin-blur-1.c b/tests/shaders/glsl-kwin-blur-1.c index 32a6335b..36b92cfe 100644 --- a/tests/shaders/glsl-kwin-blur-1.c +++ b/tests/shaders/glsl-kwin-blur-1.c @@ -222,7 +222,7 @@ enum piglit_result piglit_display(void) pass = test(); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-kwin-blur-2.c b/tests/shaders/glsl-kwin-blur-2.c index cbe3321d..042d7a98 100644 --- a/tests/shaders/glsl-kwin-blur-2.c +++ b/tests/shaders/glsl-kwin-blur-2.c @@ -251,7 +251,7 @@ enum piglit_result piglit_display(void) pass = test(); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-light-model.c b/tests/shaders/glsl-light-model.c index 691f5bc7..82647830 100644 --- a/tests/shaders/glsl-light-model.c +++ b/tests/shaders/glsl-light-model.c @@ -100,7 +100,7 @@ piglit_display(void) pass = pass && piglit_probe_pixel_rgb(15, 15, green); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-link-empty-prog-02.c b/tests/shaders/glsl-link-empty-prog-02.c index 4ec119db..0f7545cb 100644 --- a/tests/shaders/glsl-link-empty-prog-02.c +++ b/tests/shaders/glsl-link-empty-prog-02.c @@ -83,7 +83,7 @@ piglit_display(void) pass &= piglit_probe_pixel_rgb(piglit_width - 1, piglit_height - 1, black); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-lod-bias.c b/tests/shaders/glsl-lod-bias.c index f21327fc..28ff2082 100644 --- a/tests/shaders/glsl-lod-bias.c +++ b/tests/shaders/glsl-lod-bias.c @@ -201,7 +201,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-mat-attribute.c b/tests/shaders/glsl-mat-attribute.c index 25fe1e55..6d306e38 100644 --- a/tests/shaders/glsl-mat-attribute.c +++ b/tests/shaders/glsl-mat-attribute.c @@ -181,7 +181,7 @@ enum piglit_result piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-max-varyings.c b/tests/shaders/glsl-max-varyings.c index bfec0282..a0ad4337 100644 --- a/tests/shaders/glsl-max-varyings.c +++ b/tests/shaders/glsl-max-varyings.c @@ -249,7 +249,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); if (!pass) return PIGLIT_FAIL; diff --git a/tests/shaders/glsl-novertexdata.c b/tests/shaders/glsl-novertexdata.c index f4f31981..a77b477c 100644 --- a/tests/shaders/glsl-novertexdata.c +++ b/tests/shaders/glsl-novertexdata.c @@ -94,7 +94,7 @@ piglit_display(void) expColor) ? PIGLIT_PASS : PIGLIT_FAIL; - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/shaders/glsl-orangebook-ch06-bump.c b/tests/shaders/glsl-orangebook-ch06-bump.c index 59d513e2..8a864018 100644 --- a/tests/shaders/glsl-orangebook-ch06-bump.c +++ b/tests/shaders/glsl-orangebook-ch06-bump.c @@ -93,7 +93,7 @@ piglit_display(void) pass &= piglit_probe_pixel_rgb(bump_x - w / 16, bump_y - h / 16, test_bump_light); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-preprocessor-comments.c b/tests/shaders/glsl-preprocessor-comments.c index 8fe34fb8..cfac79a0 100644 --- a/tests/shaders/glsl-preprocessor-comments.c +++ b/tests/shaders/glsl-preprocessor-comments.c @@ -58,7 +58,7 @@ piglit_display(void) pass &= piglit_probe_pixel_rgb(15, 15, args1); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-routing.c b/tests/shaders/glsl-routing.c index a04c6d39..8f3092f1 100644 --- a/tests/shaders/glsl-routing.c +++ b/tests/shaders/glsl-routing.c @@ -311,7 +311,7 @@ piglit_display(void) pass = test(conf[i][0], conf[i][1], i) && pass; } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-sin.c b/tests/shaders/glsl-sin.c index 1df03af6..24f71cb5 100644 --- a/tests/shaders/glsl-sin.c +++ b/tests/shaders/glsl-sin.c @@ -104,7 +104,7 @@ enum piglit_result piglit_display(void) pass = test(); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-uniform-update.c b/tests/shaders/glsl-uniform-update.c index 3a3ae229..b396b0f8 100644 --- a/tests/shaders/glsl-uniform-update.c +++ b/tests/shaders/glsl-uniform-update.c @@ -65,7 +65,7 @@ piglit_display(void) pass &= piglit_probe_pixel_rgb(30, 30, red); pass &= piglit_probe_pixel_rgb(60, 30, blue); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-unused-varying.c b/tests/shaders/glsl-unused-varying.c index c629db25..73ac12ab 100644 --- a/tests/shaders/glsl-unused-varying.c +++ b/tests/shaders/glsl-unused-varying.c @@ -68,7 +68,7 @@ piglit_display(void) pass &= piglit_probe_pixel_rgb(15, 15, red); pass &= piglit_probe_pixel_rgb(15, 35, green); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-useprogram-displaylist.c b/tests/shaders/glsl-useprogram-displaylist.c index 9d06b481..f535bc50 100644 --- a/tests/shaders/glsl-useprogram-displaylist.c +++ b/tests/shaders/glsl-useprogram-displaylist.c @@ -92,7 +92,7 @@ piglit_display(void) pass = piglit_probe_pixel_rgb(piglit_width / 2, piglit_height / 2, green); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-vs-arrays.c b/tests/shaders/glsl-vs-arrays.c index bf19dcaf..6241d949 100644 --- a/tests/shaders/glsl-vs-arrays.c +++ b/tests/shaders/glsl-vs-arrays.c @@ -55,7 +55,7 @@ piglit_display(void) pass &= piglit_probe_pixel_rgb(15, 15, green); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-vs-functions.c b/tests/shaders/glsl-vs-functions.c index c02ef541..f87ea364 100644 --- a/tests/shaders/glsl-vs-functions.c +++ b/tests/shaders/glsl-vs-functions.c @@ -56,7 +56,7 @@ piglit_display(void) pass &= piglit_probe_pixel_rgba(piglit_width / 2, piglit_height / 2, result); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-vs-if-bool.c b/tests/shaders/glsl-vs-if-bool.c index dc1b2b11..ee2298d3 100644 --- a/tests/shaders/glsl-vs-if-bool.c +++ b/tests/shaders/glsl-vs-if-bool.c @@ -58,7 +58,7 @@ piglit_display(void) pass &= piglit_probe_pixel_rgb(15, 15, red); pass &= piglit_probe_pixel_rgb(35, 15, green); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-vs-loop-nested.c b/tests/shaders/glsl-vs-loop-nested.c index 6701a90b..83aad6c5 100644 --- a/tests/shaders/glsl-vs-loop-nested.c +++ b/tests/shaders/glsl-vs-loop-nested.c @@ -90,7 +90,7 @@ piglit_display(void) } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-vs-loop.c b/tests/shaders/glsl-vs-loop.c index 70db940c..2338104f 100644 --- a/tests/shaders/glsl-vs-loop.c +++ b/tests/shaders/glsl-vs-loop.c @@ -89,7 +89,7 @@ piglit_display(void) } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-vs-mov-after-deref.c b/tests/shaders/glsl-vs-mov-after-deref.c index 8cf8ef0a..6298eef2 100644 --- a/tests/shaders/glsl-vs-mov-after-deref.c +++ b/tests/shaders/glsl-vs-mov-after-deref.c @@ -55,7 +55,7 @@ piglit_display(void) pass &= piglit_probe_pixel_rgb(15, 15, green); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-vs-mvp-statechange.c b/tests/shaders/glsl-vs-mvp-statechange.c index a2a299b8..9a852d87 100644 --- a/tests/shaders/glsl-vs-mvp-statechange.c +++ b/tests/shaders/glsl-vs-mvp-statechange.c @@ -59,7 +59,7 @@ piglit_display(void) pass &= piglit_probe_rect_rgba(0, 0, piglit_width, piglit_height, green); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-vs-normalscale.c b/tests/shaders/glsl-vs-normalscale.c index 180f483b..add579a0 100644 --- a/tests/shaders/glsl-vs-normalscale.c +++ b/tests/shaders/glsl-vs-normalscale.c @@ -59,7 +59,7 @@ piglit_display(void) pass = piglit_probe_rect_rgba(0, 0, piglit_width, piglit_height, gray); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-vs-point-size.c b/tests/shaders/glsl-vs-point-size.c index 7a020237..3ec341c6 100644 --- a/tests/shaders/glsl-vs-point-size.c +++ b/tests/shaders/glsl-vs-point-size.c @@ -76,7 +76,7 @@ piglit_display(void) pass &= piglit_probe_pixel_rgb(piglit_width - 1, piglit_height - 1, black); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-vs-raytrace-bug26691.c b/tests/shaders/glsl-vs-raytrace-bug26691.c index 77c3a638..38aeb384 100644 --- a/tests/shaders/glsl-vs-raytrace-bug26691.c +++ b/tests/shaders/glsl-vs-raytrace-bug26691.c @@ -260,7 +260,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return ((float)passed_cnt > (1.0F-failing_pixel_percentage) *piglit_width*piglit_height) diff --git a/tests/shaders/glsl-vs-statechange-1.c b/tests/shaders/glsl-vs-statechange-1.c index 84733e41..d84a17f4 100644 --- a/tests/shaders/glsl-vs-statechange-1.c +++ b/tests/shaders/glsl-vs-statechange-1.c @@ -69,7 +69,7 @@ piglit_display(void) pass &= piglit_probe_rect_rgba(piglit_width / 2, 0, piglit_width / 2, piglit_height, blue); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/glsl-vs-texturematrix-1.c b/tests/shaders/glsl-vs-texturematrix-1.c index b1ed0cd5..37c3d7f5 100644 --- a/tests/shaders/glsl-vs-texturematrix-1.c +++ b/tests/shaders/glsl-vs-texturematrix-1.c @@ -72,7 +72,7 @@ piglit_display(void) piglit_height * 3 / 4, green) && pass; - glutSwapBuffers(); + piglit_present_results(); glDeleteTextures(1, &tex); diff --git a/tests/shaders/glsl-vs-texturematrix-2.c b/tests/shaders/glsl-vs-texturematrix-2.c index f0bfea90..b6190e0c 100644 --- a/tests/shaders/glsl-vs-texturematrix-2.c +++ b/tests/shaders/glsl-vs-texturematrix-2.c @@ -74,7 +74,7 @@ piglit_display(void) piglit_height * 3 / 4, green) && pass; - glutSwapBuffers(); + piglit_present_results(); glDeleteTextures(1, &tex); diff --git a/tests/shaders/glsl-vs-user-varying-ff.c b/tests/shaders/glsl-vs-user-varying-ff.c index 3d91f9d9..14a5424d 100644 --- a/tests/shaders/glsl-vs-user-varying-ff.c +++ b/tests/shaders/glsl-vs-user-varying-ff.c @@ -61,7 +61,7 @@ piglit_display(void) result = PIGLIT_FAIL; if (!piglit_automatic) - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/shaders/sso-simple.c b/tests/shaders/sso-simple.c index daa92891..51a17300 100644 --- a/tests/shaders/sso-simple.c +++ b/tests/shaders/sso-simple.c @@ -97,7 +97,7 @@ piglit_display(void) result = PIGLIT_FAIL; if (!piglit_automatic) - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/shaders/sso-uniforms-01.c b/tests/shaders/sso-uniforms-01.c index 777c0d18..ee753e99 100644 --- a/tests/shaders/sso-uniforms-01.c +++ b/tests/shaders/sso-uniforms-01.c @@ -71,7 +71,7 @@ piglit_display(void) result = PIGLIT_FAIL; if (!piglit_automatic) - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/shaders/sso-uniforms-02.c b/tests/shaders/sso-uniforms-02.c index 3f05d830..92ce0966 100644 --- a/tests/shaders/sso-uniforms-02.c +++ b/tests/shaders/sso-uniforms-02.c @@ -70,7 +70,7 @@ piglit_display(void) result = PIGLIT_FAIL; if (!piglit_automatic) - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/shaders/sso-user-varying-01.c b/tests/shaders/sso-user-varying-01.c index 1fcbaea9..2cd1695a 100644 --- a/tests/shaders/sso-user-varying-01.c +++ b/tests/shaders/sso-user-varying-01.c @@ -74,7 +74,7 @@ piglit_display(void) result = PIGLIT_FAIL; if (!piglit_automatic) - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/shaders/sso-user-varying-02.c b/tests/shaders/sso-user-varying-02.c index af01e454..dacd14a9 100644 --- a/tests/shaders/sso-user-varying-02.c +++ b/tests/shaders/sso-user-varying-02.c @@ -74,7 +74,7 @@ piglit_display(void) result = PIGLIT_FAIL; if (!piglit_automatic) - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/shaders/trinity-fp1.c b/tests/shaders/trinity-fp1.c index b52aa1f5..52fb4bbd 100644 --- a/tests/shaders/trinity-fp1.c +++ b/tests/shaders/trinity-fp1.c @@ -138,7 +138,7 @@ piglit_display(void) DoFrame(); succ = DoTest(); - glutSwapBuffers(); + piglit_present_results(); return succ ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/useprogram-flushverts-1.c b/tests/shaders/useprogram-flushverts-1.c index 8410894c..16b79415 100644 --- a/tests/shaders/useprogram-flushverts-1.c +++ b/tests/shaders/useprogram-flushverts-1.c @@ -88,7 +88,7 @@ piglit_display(void) pass &= piglit_probe_pixel_rgba(piglit_width * 7 / 8, piglit_height / 2, blue); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/useprogram-flushverts-2.c b/tests/shaders/useprogram-flushverts-2.c index eca9ba77..ef88efe3 100644 --- a/tests/shaders/useprogram-flushverts-2.c +++ b/tests/shaders/useprogram-flushverts-2.c @@ -94,7 +94,7 @@ piglit_display(void) pass &= piglit_probe_pixel_rgba(piglit_width * 7 / 8, piglit_height / 2, blue); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/useprogram-refcount-1.c b/tests/shaders/useprogram-refcount-1.c index 8d6cef8e..d2f3e980 100644 --- a/tests/shaders/useprogram-refcount-1.c +++ b/tests/shaders/useprogram-refcount-1.c @@ -62,7 +62,7 @@ piglit_display(void) pass &= piglit_probe_rect_rgba(0, 0, piglit_width, piglit_height, green); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/useshaderprogram-flushverts-1.c b/tests/shaders/useshaderprogram-flushverts-1.c index 95388869..61532ef8 100644 --- a/tests/shaders/useshaderprogram-flushverts-1.c +++ b/tests/shaders/useshaderprogram-flushverts-1.c @@ -90,7 +90,7 @@ piglit_display(void) pass &= piglit_probe_pixel_rgba(piglit_width * 7 / 8, piglit_height / 2, blue); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/shaders/vp-address-01.c b/tests/shaders/vp-address-01.c index 7211b983..635ea327 100644 --- a/tests/shaders/vp-address-01.c +++ b/tests/shaders/vp-address-01.c @@ -104,7 +104,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/shaders/vp-address-02.c b/tests/shaders/vp-address-02.c index 98712c9c..12045c29 100644 --- a/tests/shaders/vp-address-02.c +++ b/tests/shaders/vp-address-02.c @@ -118,7 +118,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/shaders/vp-address-03.c b/tests/shaders/vp-address-03.c index 2606fa76..6e6f40b3 100644 --- a/tests/shaders/vp-address-03.c +++ b/tests/shaders/vp-address-03.c @@ -96,7 +96,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/shaders/vp-address-04.c b/tests/shaders/vp-address-04.c index b756bcfb..2296a9b6 100644 --- a/tests/shaders/vp-address-04.c +++ b/tests/shaders/vp-address-04.c @@ -175,7 +175,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/shaders/vp-address-05.c b/tests/shaders/vp-address-05.c index bdb0c898..5e90147c 100644 --- a/tests/shaders/vp-address-05.c +++ b/tests/shaders/vp-address-05.c @@ -99,7 +99,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/shaders/vp-address-06.c b/tests/shaders/vp-address-06.c index ef058bac..3e5fa673 100644 --- a/tests/shaders/vp-address-06.c +++ b/tests/shaders/vp-address-06.c @@ -98,7 +98,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/shaders/vp-clipdistance-01.c b/tests/shaders/vp-clipdistance-01.c index 46102403..8a36908b 100644 --- a/tests/shaders/vp-clipdistance-01.c +++ b/tests/shaders/vp-clipdistance-01.c @@ -111,7 +111,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/shaders/vp-clipdistance-02.c b/tests/shaders/vp-clipdistance-02.c index a911dda2..1d016d55 100644 --- a/tests/shaders/vp-clipdistance-02.c +++ b/tests/shaders/vp-clipdistance-02.c @@ -106,7 +106,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/shaders/vp-clipdistance-03.c b/tests/shaders/vp-clipdistance-03.c index 74e36ef8..ff11034e 100644 --- a/tests/shaders/vp-clipdistance-03.c +++ b/tests/shaders/vp-clipdistance-03.c @@ -91,7 +91,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/shaders/vp-clipdistance-04.c b/tests/shaders/vp-clipdistance-04.c index 5bca302e..793dc797 100644 --- a/tests/shaders/vp-clipdistance-04.c +++ b/tests/shaders/vp-clipdistance-04.c @@ -96,7 +96,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return result; } diff --git a/tests/shaders/vp-ignore-input.c b/tests/shaders/vp-ignore-input.c index b5cc48f3..823308be 100644 --- a/tests/shaders/vp-ignore-input.c +++ b/tests/shaders/vp-ignore-input.c @@ -131,7 +131,7 @@ piglit_display(void) glPopMatrix(); glFinish(); - glutSwapBuffers(); + piglit_present_results(); return PIGLIT_PASS; } diff --git a/tests/spec/amd_seamless_cubemap_per_texture/amd_seamless_cubemap_per_texture.c b/tests/spec/amd_seamless_cubemap_per_texture/amd_seamless_cubemap_per_texture.c index 7ec34a4b..8adca21d 100644 --- a/tests/spec/amd_seamless_cubemap_per_texture/amd_seamless_cubemap_per_texture.c +++ b/tests/spec/amd_seamless_cubemap_per_texture/amd_seamless_cubemap_per_texture.c @@ -116,7 +116,7 @@ enum piglit_result piglit_display(void) pass = piglit_probe_pixel_rgb(200, 50, violet) && pass; pass = piglit_probe_pixel_rgb(230, 50, violet) && pass; - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/spec/arb_draw_elements_base_vertex/draw-elements-instanced-base-vertex.c b/tests/spec/arb_draw_elements_base_vertex/draw-elements-instanced-base-vertex.c index 870abcc2..8b88f564 100644 --- a/tests/spec/arb_draw_elements_base_vertex/draw-elements-instanced-base-vertex.c +++ b/tests/spec/arb_draw_elements_base_vertex/draw-elements-instanced-base-vertex.c @@ -186,7 +186,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/spec/arb_es2_compatibility/arb_es2_compatibility-depthrangef.c b/tests/spec/arb_es2_compatibility/arb_es2_compatibility-depthrangef.c index ec1e524a..d099b937 100644 --- a/tests/spec/arb_es2_compatibility/arb_es2_compatibility-depthrangef.c +++ b/tests/spec/arb_es2_compatibility/arb_es2_compatibility-depthrangef.c @@ -80,7 +80,7 @@ piglit_display(void) pass = piglit_probe_pixel_rgb(piglit_width * 3 / 4, piglit_height / 2, blue) && pass; - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; #else diff --git a/tests/spec/arb_es2_compatibility/arb_es2_compatibility-fixed-type.c b/tests/spec/arb_es2_compatibility/arb_es2_compatibility-fixed-type.c index 7130aaa5..e281108d 100644 --- a/tests/spec/arb_es2_compatibility/arb_es2_compatibility-fixed-type.c +++ b/tests/spec/arb_es2_compatibility/arb_es2_compatibility-fixed-type.c @@ -138,7 +138,7 @@ piglit_display(void) pass = piglit_probe_pixel_rgba(opos[i*2]+25, opos[i*2+1]+25, &ocol[i*4]) && pass; } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/spec/arb_es2_compatibility/arb_es2_compatibility-releaseshadercompiler.c b/tests/spec/arb_es2_compatibility/arb_es2_compatibility-releaseshadercompiler.c index 2ed7dd7d..69fb6917 100644 --- a/tests/spec/arb_es2_compatibility/arb_es2_compatibility-releaseshadercompiler.c +++ b/tests/spec/arb_es2_compatibility/arb_es2_compatibility-releaseshadercompiler.c @@ -104,7 +104,7 @@ piglit_display(void) assert(!glGetError()); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; #else diff --git a/tests/spec/arb_instanced_arrays/instanced_arrays.c b/tests/spec/arb_instanced_arrays/instanced_arrays.c index 3d1a1b15..a0fe4129 100644 --- a/tests/spec/arb_instanced_arrays/instanced_arrays.c +++ b/tests/spec/arb_instanced_arrays/instanced_arrays.c @@ -158,7 +158,7 @@ test_instancing(GLuint divisor) TestName, i); fprintf(stderr, "%s: color instance divisor = %u\n", TestName, divisor); - glutSwapBuffers(); + piglit_present_results(); return GL_FALSE; } } diff --git a/tests/spec/arb_sampler_objects/sampler-incomplete.c b/tests/spec/arb_sampler_objects/sampler-incomplete.c index 75d19553..2b17a53d 100644 --- a/tests/spec/arb_sampler_objects/sampler-incomplete.c +++ b/tests/spec/arb_sampler_objects/sampler-incomplete.c @@ -127,7 +127,7 @@ piglit_display(void) p = piglit_probe_pixel_rgb(piglit_width / 2, piglit_height / 2, expected); - glutSwapBuffers(); + piglit_present_results(); return p ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/spec/arb_sampler_objects/sampler-objects.c b/tests/spec/arb_sampler_objects/sampler-objects.c index f7937be0..28024458 100644 --- a/tests/spec/arb_sampler_objects/sampler-objects.c +++ b/tests/spec/arb_sampler_objects/sampler-objects.c @@ -213,7 +213,7 @@ test_samplers(void) p = piglit_probe_pixel_rgba(10, 10, exp); - glutSwapBuffers(); + piglit_present_results(); if (!p) { fprintf(stderr, "%s failed for sampler %d\n", Prog, i); diff --git a/tests/spec/arb_shader_texture_lod/execution/texgrad.c b/tests/spec/arb_shader_texture_lod/execution/texgrad.c index 629b0b52..7086ac1d 100644 --- a/tests/spec/arb_shader_texture_lod/execution/texgrad.c +++ b/tests/spec/arb_shader_texture_lod/execution/texgrad.c @@ -180,7 +180,7 @@ enum piglit_result piglit_display(void) if (!piglit_probe_rect_halves_equal_rgba(0, 0, piglit_width, piglit_height)) pass = GL_FALSE; - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/spec/arb_texture_float/texture-float-formats.c b/tests/spec/arb_texture_float/texture-float-formats.c index 978ef815..a0c8bba9 100644 --- a/tests/spec/arb_texture_float/texture-float-formats.c +++ b/tests/spec/arb_texture_float/texture-float-formats.c @@ -337,7 +337,7 @@ test_format(const struct format_info *info) printf("\n"); } - glutSwapBuffers(); + piglit_present_results(); return p; } diff --git a/tests/spec/arb_texture_storage/texture-storage.c b/tests/spec/arb_texture_storage/texture-storage.c index 959d1398..c10546e8 100644 --- a/tests/spec/arb_texture_storage/texture-storage.c +++ b/tests/spec/arb_texture_storage/texture-storage.c @@ -313,7 +313,7 @@ test_2d_mipmap_rendering(void) p = piglit_probe_pixel_rgb(piglit_width/2, piglit_height/2, expected); - glutSwapBuffers(); + piglit_present_results(); if (!p) { printf("%s: wrong color for mipmap level %d\n", diff --git a/tests/spec/arb_transform_feedback2/draw-auto.c b/tests/spec/arb_transform_feedback2/draw-auto.c index e7fe8bb8..01780a9f 100644 --- a/tests/spec/arb_transform_feedback2/draw-auto.c +++ b/tests/spec/arb_transform_feedback2/draw-auto.c @@ -198,7 +198,7 @@ enum piglit_result piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/spec/arb_vertex_buffer_object/elements-negative-offset.c b/tests/spec/arb_vertex_buffer_object/elements-negative-offset.c index 3e0c9396..6109acdd 100644 --- a/tests/spec/arb_vertex_buffer_object/elements-negative-offset.c +++ b/tests/spec/arb_vertex_buffer_object/elements-negative-offset.c @@ -104,7 +104,7 @@ piglit_display(void) piglit_width / 2, piglit_height / 2, blue) && pass; - glutSwapBuffers(); + piglit_present_results(); glDisableClientState(GL_VERTEX_ARRAY); glDisableClientState(GL_COLOR_ARRAY); diff --git a/tests/spec/arb_vertex_buffer_object/mixed-immediate-and-vbo.c b/tests/spec/arb_vertex_buffer_object/mixed-immediate-and-vbo.c index 0b46cafa..d6648a6b 100644 --- a/tests/spec/arb_vertex_buffer_object/mixed-immediate-and-vbo.c +++ b/tests/spec/arb_vertex_buffer_object/mixed-immediate-and-vbo.c @@ -101,7 +101,7 @@ piglit_display(void) pass = piglit_probe_rect_rgba(0, 0, piglit_width, piglit_height, green); - glutSwapBuffers(); + piglit_present_results(); glDisableClientState(GL_VERTEX_ARRAY); glDeleteBuffersARB(1, &vbo); diff --git a/tests/spec/arb_vertex_type_2_10_10_10_rev/draw-vertices-2101010.c b/tests/spec/arb_vertex_type_2_10_10_10_rev/draw-vertices-2101010.c index 82e4f037..6c4f1161 100644 --- a/tests/spec/arb_vertex_type_2_10_10_10_rev/draw-vertices-2101010.c +++ b/tests/spec/arb_vertex_type_2_10_10_10_rev/draw-vertices-2101010.c @@ -226,7 +226,7 @@ piglit_display(void) } glFinish(); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/spec/ati_draw_buffers/arbfp-no-index.c b/tests/spec/ati_draw_buffers/arbfp-no-index.c index d3f10f5d..e29ed51f 100644 --- a/tests/spec/ati_draw_buffers/arbfp-no-index.c +++ b/tests/spec/ati_draw_buffers/arbfp-no-index.c @@ -141,7 +141,7 @@ piglit_display(void) pass = pass && piglit_probe_rect_rgba(piglit_width / 2, 0, piglit_width / 2, piglit_height, result1); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/spec/ati_draw_buffers/arbfp-no-option.c b/tests/spec/ati_draw_buffers/arbfp-no-option.c index 3c3212fe..4b655ba9 100644 --- a/tests/spec/ati_draw_buffers/arbfp-no-option.c +++ b/tests/spec/ati_draw_buffers/arbfp-no-option.c @@ -127,7 +127,7 @@ piglit_display(void) pass = piglit_probe_rect_rgba(0, 0, piglit_width, piglit_height, green); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/spec/ati_draw_buffers/arbfp.c b/tests/spec/ati_draw_buffers/arbfp.c index 496c43e9..12d8d7df 100644 --- a/tests/spec/ati_draw_buffers/arbfp.c +++ b/tests/spec/ati_draw_buffers/arbfp.c @@ -133,7 +133,7 @@ piglit_display(void) pass = pass && piglit_probe_rect_rgba(piglit_width / 2, 0, piglit_width / 2, piglit_height, result1); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/spec/ati_envmap_bumpmap/bump.c b/tests/spec/ati_envmap_bumpmap/bump.c index e6c95b85..0590f9d6 100644 --- a/tests/spec/ati_envmap_bumpmap/bump.c +++ b/tests/spec/ati_envmap_bumpmap/bump.c @@ -181,7 +181,7 @@ piglit_display(void) piglit_height / 2, green); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/spec/ext_fog_coord/modes.c b/tests/spec/ext_fog_coord/modes.c index e0ef6f44..34adf8d4 100644 --- a/tests/spec/ext_fog_coord/modes.c +++ b/tests/spec/ext_fog_coord/modes.c @@ -119,7 +119,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/spec/ext_texture_integer/fbo-integer-readpixels-sint-uint.c b/tests/spec/ext_texture_integer/fbo-integer-readpixels-sint-uint.c index 9b97b063..62f7e2a2 100644 --- a/tests/spec/ext_texture_integer/fbo-integer-readpixels-sint-uint.c +++ b/tests/spec/ext_texture_integer/fbo-integer-readpixels-sint-uint.c @@ -258,7 +258,7 @@ test_fbo(const struct format_info *info) } } - glutSwapBuffers(); + piglit_present_results(); glDeleteTextures(1, &texObj); glDeleteFramebuffers(1, &fbo); diff --git a/tests/spec/glsl-1.30/execution/fs-texelFetch-2D.c b/tests/spec/glsl-1.30/execution/fs-texelFetch-2D.c index ba7f7ca6..dfdf50b9 100644 --- a/tests/spec/glsl-1.30/execution/fs-texelFetch-2D.c +++ b/tests/spec/glsl-1.30/execution/fs-texelFetch-2D.c @@ -103,7 +103,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/spec/glsl-1.30/execution/fs-texelFetchOffset-2D.c b/tests/spec/glsl-1.30/execution/fs-texelFetchOffset-2D.c index 5211377f..89a1ed42 100644 --- a/tests/spec/glsl-1.30/execution/fs-texelFetchOffset-2D.c +++ b/tests/spec/glsl-1.30/execution/fs-texelFetchOffset-2D.c @@ -107,7 +107,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/spec/nv_conditional_render/bitmap.c b/tests/spec/nv_conditional_render/bitmap.c index af38ca03..2e54d7b3 100644 --- a/tests/spec/nv_conditional_render/bitmap.c +++ b/tests/spec/nv_conditional_render/bitmap.c @@ -88,7 +88,7 @@ piglit_display(void) pass = piglit_probe_rect_rgba(0, 0, piglit_width, piglit_height, green); - glutSwapBuffers(); + piglit_present_results(); glDeleteQueries(1, &q); free(buf); diff --git a/tests/spec/nv_conditional_render/blitframebuffer.c b/tests/spec/nv_conditional_render/blitframebuffer.c index 77269fc2..f45e4c16 100644 --- a/tests/spec/nv_conditional_render/blitframebuffer.c +++ b/tests/spec/nv_conditional_render/blitframebuffer.c @@ -121,7 +121,7 @@ piglit_display(void) pass = piglit_probe_rect_rgba(0, 0, piglit_width, piglit_height, green); - glutSwapBuffers(); + piglit_present_results(); glDeleteQueries(1, &q); diff --git a/tests/spec/nv_conditional_render/clear.c b/tests/spec/nv_conditional_render/clear.c index aefeed9e..1884ad0b 100644 --- a/tests/spec/nv_conditional_render/clear.c +++ b/tests/spec/nv_conditional_render/clear.c @@ -82,7 +82,7 @@ piglit_display(void) pass = piglit_probe_rect_rgba(0, 0, piglit_width, piglit_height, green); - glutSwapBuffers(); + piglit_present_results(); glDeleteQueries(1, &q); diff --git a/tests/spec/nv_conditional_render/copypixels.c b/tests/spec/nv_conditional_render/copypixels.c index 59b732e1..4ffd8aff 100644 --- a/tests/spec/nv_conditional_render/copypixels.c +++ b/tests/spec/nv_conditional_render/copypixels.c @@ -84,7 +84,7 @@ piglit_display(void) pass = piglit_probe_rect_rgba(0, 0, piglit_width, piglit_height, green); - glutSwapBuffers(); + piglit_present_results(); glDeleteQueries(1, &qfail); glDeleteQueries(1, &qpass); diff --git a/tests/spec/nv_conditional_render/copyteximage.c b/tests/spec/nv_conditional_render/copyteximage.c index a014d1de..e8d1c7cf 100644 --- a/tests/spec/nv_conditional_render/copyteximage.c +++ b/tests/spec/nv_conditional_render/copyteximage.c @@ -106,7 +106,7 @@ piglit_display(void) pass = piglit_probe_rect_rgba(0, 0, piglit_width, piglit_height, green); - glutSwapBuffers(); + piglit_present_results(); glDeleteQueries(1, &q); diff --git a/tests/spec/nv_conditional_render/copytexsubimage.c b/tests/spec/nv_conditional_render/copytexsubimage.c index 3449fa05..675e4fff 100644 --- a/tests/spec/nv_conditional_render/copytexsubimage.c +++ b/tests/spec/nv_conditional_render/copytexsubimage.c @@ -106,7 +106,7 @@ piglit_display(void) pass = piglit_probe_rect_rgba(0, 0, piglit_width, piglit_height, green); - glutSwapBuffers(); + piglit_present_results(); glDeleteQueries(1, &q); diff --git a/tests/spec/nv_conditional_render/dlist.c b/tests/spec/nv_conditional_render/dlist.c index fe626503..e33ea129 100644 --- a/tests/spec/nv_conditional_render/dlist.c +++ b/tests/spec/nv_conditional_render/dlist.c @@ -77,7 +77,7 @@ piglit_display(void) pass = piglit_probe_rect_rgba(0, 0, piglit_width, piglit_height, green); - glutSwapBuffers(); + piglit_present_results(); glDeleteQueries(1, &q); diff --git a/tests/spec/nv_conditional_render/drawpixels.c b/tests/spec/nv_conditional_render/drawpixels.c index ddb45108..371d8e80 100644 --- a/tests/spec/nv_conditional_render/drawpixels.c +++ b/tests/spec/nv_conditional_render/drawpixels.c @@ -98,7 +98,7 @@ piglit_display(void) pass = piglit_probe_rect_rgba(0, 0, piglit_width, piglit_height, green); - glutSwapBuffers(); + piglit_present_results(); glDeleteQueries(1, &q); free(buf); diff --git a/tests/spec/nv_conditional_render/generatemipmap.c b/tests/spec/nv_conditional_render/generatemipmap.c index 8c55e9ae..90ce8f6d 100644 --- a/tests/spec/nv_conditional_render/generatemipmap.c +++ b/tests/spec/nv_conditional_render/generatemipmap.c @@ -105,7 +105,7 @@ piglit_display(void) pass = piglit_probe_rect_rgba(0, 0, piglit_width, piglit_height, green); - glutSwapBuffers(); + piglit_present_results(); glDeleteQueries(1, &q); diff --git a/tests/spec/nv_conditional_render/vertex_array.c b/tests/spec/nv_conditional_render/vertex_array.c index b75c147b..25b387f1 100644 --- a/tests/spec/nv_conditional_render/vertex_array.c +++ b/tests/spec/nv_conditional_render/vertex_array.c @@ -82,7 +82,7 @@ piglit_display(void) pass = piglit_probe_rect_rgba(0, 0, piglit_width, piglit_height, green); - glutSwapBuffers(); + piglit_present_results(); glDeleteQueries(1, &q); diff --git a/tests/spec/nv_texture_barrier/blending-in-shader.c b/tests/spec/nv_texture_barrier/blending-in-shader.c index d3d1642c..893e0a35 100644 --- a/tests/spec/nv_texture_barrier/blending-in-shader.c +++ b/tests/spec/nv_texture_barrier/blending-in-shader.c @@ -73,7 +73,7 @@ enum piglit_result piglit_display(void) piglit_draw_rect_tex(-1, -1, 2, 2, 0, 0, 1, 1); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/spec/oes_draw_texture/oes_draw_texture.c b/tests/spec/oes_draw_texture/oes_draw_texture.c index ff606839..44599e55 100644 --- a/tests/spec/oes_draw_texture/oes_draw_texture.c +++ b/tests/spec/oes_draw_texture/oes_draw_texture.c @@ -213,7 +213,7 @@ piglit_display(void) pass = test_depth() && pass; glFinish(); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/texturing/array-texture.c b/tests/texturing/array-texture.c index e175e396..b5d216a4 100644 --- a/tests/texturing/array-texture.c +++ b/tests/texturing/array-texture.c @@ -320,7 +320,7 @@ piglit_display(void) check_error(__LINE__); } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/texturing/crossbar.c b/tests/texturing/crossbar.c index be931633..4bec7aa4 100644 --- a/tests/texturing/crossbar.c +++ b/tests/texturing/crossbar.c @@ -148,7 +148,7 @@ piglit_display(void) { if (piglit_automatic) { DoFrame(); - glutSwapBuffers(); + piglit_present_results(); return PIGLIT_PASS; } else { int success, retry; @@ -156,7 +156,7 @@ piglit_display(void) printf("\nFirst frame\n-----------\n"); DoFrame(); success = DoTest(); - glutSwapBuffers(); + piglit_present_results(); printf("\nSecond frame\n------------\n"); glMatrixMode( GL_PROJECTION ); @@ -167,7 +167,7 @@ piglit_display(void) DoFrame(); retry = DoTest(); - glutSwapBuffers(); + piglit_present_results(); if (retry && success) return PIGLIT_PASS; diff --git a/tests/texturing/cubemap.c b/tests/texturing/cubemap.c index 7d056905..fe3d9b63 100644 --- a/tests/texturing/cubemap.c +++ b/tests/texturing/cubemap.c @@ -269,7 +269,7 @@ piglit_display(void) i++; } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/texturing/depth-level-clamp.c b/tests/texturing/depth-level-clamp.c index deed0842..c9a91b61 100644 --- a/tests/texturing/depth-level-clamp.c +++ b/tests/texturing/depth-level-clamp.c @@ -153,7 +153,7 @@ piglit_display(void) glDeleteTextures(1, &tex); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/texturing/depth-tex-compare.c b/tests/texturing/depth-tex-compare.c index 2d0780b1..d44a0024 100644 --- a/tests/texturing/depth-tex-compare.c +++ b/tests/texturing/depth-tex-compare.c @@ -241,7 +241,7 @@ piglit_display(void) } } - glutSwapBuffers(); + piglit_present_results(); printf("Left to Right: ALPHA, LUMINANCE, INTENSITY\n"); printf("Top to Bottom: LESS, LEQUAL, GREATER, GEQUAL, " diff --git a/tests/texturing/depth-tex-modes-common.c b/tests/texturing/depth-tex-modes-common.c index 9ee1302b..c57c8c86 100644 --- a/tests/texturing/depth-tex-modes-common.c +++ b/tests/texturing/depth-tex-modes-common.c @@ -234,7 +234,7 @@ depth_tex_display(const GLenum *depth_texture_modes, unsigned num_modes, } } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/texturing/depth-tex-modes-glsl.c b/tests/texturing/depth-tex-modes-glsl.c index 715b3ba3..ba718b46 100644 --- a/tests/texturing/depth-tex-modes-glsl.c +++ b/tests/texturing/depth-tex-modes-glsl.c @@ -308,7 +308,7 @@ piglit_display(void) } glFinish(); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; diff --git a/tests/texturing/fragment-and-vertex-texturing.c b/tests/texturing/fragment-and-vertex-texturing.c index 4258c0cd..1e98e619 100644 --- a/tests/texturing/fragment-and-vertex-texturing.c +++ b/tests/texturing/fragment-and-vertex-texturing.c @@ -165,7 +165,7 @@ piglit_display(void) pass = piglit_probe_pixel_rgb(1, 1, expected); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/texturing/fxt1-teximage.c b/tests/texturing/fxt1-teximage.c index 5dc87fc8..112037cb 100644 --- a/tests/texturing/fxt1-teximage.c +++ b/tests/texturing/fxt1-teximage.c @@ -124,7 +124,7 @@ piglit_display(void) pass = pass && check_resulting_mipmaps(10, 10 + (10 + SIZE) * 0); pass = pass && check_resulting_mipmaps(10, 10 + (10 + SIZE) * 1); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/texturing/gen-compressed-teximage.c b/tests/texturing/gen-compressed-teximage.c index aa13d3a6..58a21b93 100644 --- a/tests/texturing/gen-compressed-teximage.c +++ b/tests/texturing/gen-compressed-teximage.c @@ -154,7 +154,7 @@ piglit_display(void) pass = pass && check_resulting_mipmaps(0, SIZE, blue); pass = pass && check_resulting_mipmaps(0, SIZE * 2, red); - glutSwapBuffers(); + piglit_present_results(); glFlush(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; diff --git a/tests/texturing/gen-nonzero-unit.c b/tests/texturing/gen-nonzero-unit.c index f035206a..2b641de5 100644 --- a/tests/texturing/gen-nonzero-unit.c +++ b/tests/texturing/gen-nonzero-unit.c @@ -163,7 +163,7 @@ piglit_display(void) pass = pass && check_resulting_mipmaps(0, SIZE, blue); pass = pass && check_resulting_mipmaps(0, SIZE * 2, red); - glutSwapBuffers(); + piglit_present_results(); glDeleteTextures(3, textures); diff --git a/tests/texturing/gen-teximage.c b/tests/texturing/gen-teximage.c index d4ed84f4..243b5e9b 100644 --- a/tests/texturing/gen-teximage.c +++ b/tests/texturing/gen-teximage.c @@ -151,7 +151,7 @@ piglit_display(void) pass = pass && check_resulting_mipmaps(0, SIZE, blue); pass = pass && check_resulting_mipmaps(0, SIZE * 2, red); - glutSwapBuffers(); + piglit_present_results(); glDeleteTextures(1, &texture); diff --git a/tests/texturing/gen-texsubimage.c b/tests/texturing/gen-texsubimage.c index 17002c9b..2ac21c71 100644 --- a/tests/texturing/gen-texsubimage.c +++ b/tests/texturing/gen-texsubimage.c @@ -129,7 +129,7 @@ piglit_display(void) pass = pass && check_resulting_mipmaps(0, 0, blue); pass = pass && check_resulting_mipmaps(0, 256, red); - glutSwapBuffers(); + piglit_present_results(); glDeleteTextures(1, &texture); diff --git a/tests/texturing/getteximage-formats.c b/tests/texturing/getteximage-formats.c index 8f4101d8..1fe74dc6 100644 --- a/tests/texturing/getteximage-formats.c +++ b/tests/texturing/getteximage-formats.c @@ -442,7 +442,7 @@ test_format(const struct test_desc *test, } - glutSwapBuffers(); + piglit_present_results(); return pass; } @@ -513,7 +513,7 @@ piglit_display(void) glClear(GL_COLOR_BUFFER_BIT); draw_format_text(set, &set->format[format_index]); draw_unsupported(); - glutSwapBuffers(); + piglit_present_results(); } } diff --git a/tests/texturing/getteximage-simple.c b/tests/texturing/getteximage-simple.c index e4b464e4..46afde5d 100644 --- a/tests/texturing/getteximage-simple.c +++ b/tests/texturing/getteximage-simple.c @@ -59,7 +59,7 @@ piglit_display(void) glVertex2f(0, 1); glEnd(); - glutSwapBuffers(); + piglit_present_results(); pass = test_getteximage(); diff --git a/tests/texturing/levelclamp.c b/tests/texturing/levelclamp.c index f8bac547..3d450007 100644 --- a/tests/texturing/levelclamp.c +++ b/tests/texturing/levelclamp.c @@ -187,7 +187,7 @@ piglit_display(void) glDeleteTextures(1, &tex); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/texturing/lodbias.c b/tests/texturing/lodbias.c index e91e2d4b..310f7aa0 100644 --- a/tests/texturing/lodbias.c +++ b/tests/texturing/lodbias.c @@ -146,7 +146,7 @@ test_simple(int bias1, int bias2) glDisable(GL_TEXTURE_2D); if (!piglit_automatic) - glutSwapBuffers(); + piglit_present_results(); return pass; } @@ -222,7 +222,7 @@ test_multitex(int bias1, int bias2) glDisable(GL_TEXTURE_2D); if (!piglit_automatic) - glutSwapBuffers(); + piglit_present_results(); return pass; } diff --git a/tests/texturing/lodclamp-between-max.c b/tests/texturing/lodclamp-between-max.c index 58b4e3a4..567dfbd5 100644 --- a/tests/texturing/lodclamp-between-max.c +++ b/tests/texturing/lodclamp-between-max.c @@ -142,7 +142,7 @@ piglit_display(void) glDeleteTextures(1, &tex); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/texturing/lodclamp-between.c b/tests/texturing/lodclamp-between.c index 80ffce86..d69c9cfe 100644 --- a/tests/texturing/lodclamp-between.c +++ b/tests/texturing/lodclamp-between.c @@ -142,7 +142,7 @@ piglit_display(void) glDeleteTextures(1, &tex); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/texturing/lodclamp.c b/tests/texturing/lodclamp.c index a55f74d6..0150e2e4 100644 --- a/tests/texturing/lodclamp.c +++ b/tests/texturing/lodclamp.c @@ -187,7 +187,7 @@ piglit_display(void) glDeleteTextures(1, &tex); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/texturing/mipmap-setup.c b/tests/texturing/mipmap-setup.c index ae8e719e..18712d65 100644 --- a/tests/texturing/mipmap-setup.c +++ b/tests/texturing/mipmap-setup.c @@ -155,7 +155,7 @@ test(enum order ord, const char *order) pass &= p; - glutSwapBuffers(); + piglit_present_results(); } return pass; diff --git a/tests/texturing/rg-draw-pixels.c b/tests/texturing/rg-draw-pixels.c index 2e3e4d79..38b0e24d 100644 --- a/tests/texturing/rg-draw-pixels.c +++ b/tests/texturing/rg-draw-pixels.c @@ -99,7 +99,7 @@ piglit_display(void) pass = pass && piglit_probe_pixel_rgb(20,0,rg); pass = pass && piglit_probe_pixel_rgb(21,0,rg); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; diff --git a/tests/texturing/rg-teximage-common.c b/tests/texturing/rg-teximage-common.c index 72e1e5f0..2d097492 100644 --- a/tests/texturing/rg-teximage-common.c +++ b/tests/texturing/rg-teximage-common.c @@ -59,7 +59,7 @@ piglit_display(void) 0.0, 0.0, 1.0, 1.0); } - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/texturing/s3tc-teximage.c b/tests/texturing/s3tc-teximage.c index 5583fe70..01e2e97b 100644 --- a/tests/texturing/s3tc-teximage.c +++ b/tests/texturing/s3tc-teximage.c @@ -133,7 +133,7 @@ piglit_display(void) pass = pass && check_resulting_mipmaps(10, 10 + (10 + SIZE) * 2); pass = pass && check_resulting_mipmaps(10, 10 + (10 + SIZE) * 3); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/texturing/s3tc-texsubimage.c b/tests/texturing/s3tc-texsubimage.c index 8b508b83..b575d8b7 100644 --- a/tests/texturing/s3tc-texsubimage.c +++ b/tests/texturing/s3tc-texsubimage.c @@ -210,7 +210,7 @@ piglit_display(void) pass = pass && check_resulting_mipmaps(10, 10 + (10 + SIZE) * 2); pass = pass && check_resulting_mipmaps(10, 10 + (10 + SIZE) * 3); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/texturing/streaming-texture-leak.c b/tests/texturing/streaming-texture-leak.c index c085a9d2..5c2d1004 100644 --- a/tests/texturing/streaming-texture-leak.c +++ b/tests/texturing/streaming-texture-leak.c @@ -75,7 +75,7 @@ piglit_display(void) pass = piglit_probe_pixel_rgb(piglit_width / 2, piglit_height / 2, expected); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/texturing/tex-border-1.c b/tests/texturing/tex-border-1.c index a8b8e25a..6d8616b1 100644 --- a/tests/texturing/tex-border-1.c +++ b/tests/texturing/tex-border-1.c @@ -91,7 +91,7 @@ piglit_display(void) glDeleteTextures(1, &tex); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/texturing/tex-miplevel-selection.c b/tests/texturing/tex-miplevel-selection.c index ddce3f7a..9e7421c6 100644 --- a/tests/texturing/tex-miplevel-selection.c +++ b/tests/texturing/tex-miplevel-selection.c @@ -321,7 +321,7 @@ piglit_display(void) } printf("Summary: %i/%i passed\n", total-failed, total); - glutSwapBuffers(); + piglit_present_results(); return !failed ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/texturing/tex-skipped-unit.c b/tests/texturing/tex-skipped-unit.c index e61a6af2..6668770b 100644 --- a/tests/texturing/tex-skipped-unit.c +++ b/tests/texturing/tex-skipped-unit.c @@ -122,7 +122,7 @@ piglit_display(void) piglit_height / 2, white); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/texturing/tex-srgb.c b/tests/texturing/tex-srgb.c index 655dc73d..1c2bf14a 100644 --- a/tests/texturing/tex-srgb.c +++ b/tests/texturing/tex-srgb.c @@ -140,7 +140,7 @@ srgb_tex_test(int srgb_format) glDeleteTextures(1, &tex); - glutSwapBuffers(); + piglit_present_results(); return pass; } diff --git a/tests/texturing/tex-swizzle.c b/tests/texturing/tex-swizzle.c index 9fa6da92..0f805687 100644 --- a/tests/texturing/tex-swizzle.c +++ b/tests/texturing/tex-swizzle.c @@ -218,7 +218,7 @@ piglit_display(void) pass = probes(); glFinish(); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/texturing/tex3d-maxsize.c b/tests/texturing/tex3d-maxsize.c index 452019c9..626a46df 100644 --- a/tests/texturing/tex3d-maxsize.c +++ b/tests/texturing/tex3d-maxsize.c @@ -174,7 +174,7 @@ piglit_display(void) piglit_height * 3 / 4, c1) && pass; pass = piglit_probe_pixel_rgb(piglit_width * 3 / 4, piglit_height * 3 / 4, c2) && pass; - glutSwapBuffers(); + piglit_present_results(); if (!pass) { printf("%s: failed at size %d x %d x %d\n", TestName, diff --git a/tests/texturing/tex3d-npot.c b/tests/texturing/tex3d-npot.c index f79b0275..85919558 100644 --- a/tests/texturing/tex3d-npot.c +++ b/tests/texturing/tex3d-npot.c @@ -148,7 +148,7 @@ static int render_and_check(int w, int h, int d, GLenum format, float q, unsigne } free(readback); - glutSwapBuffers(); + piglit_present_results(); return 1; } diff --git a/tests/texturing/tex3d.c b/tests/texturing/tex3d.c index 72d8313b..e990057a 100644 --- a/tests/texturing/tex3d.c +++ b/tests/texturing/tex3d.c @@ -148,7 +148,7 @@ static int render_and_check(int w, int h, int d, GLenum format, float q, unsigne } free(readback); - glutSwapBuffers(); + piglit_present_results(); return 1; } diff --git a/tests/texturing/texdepth.c b/tests/texturing/texdepth.c index 0c77d77e..2be7dc1d 100644 --- a/tests/texturing/texdepth.c +++ b/tests/texturing/texdepth.c @@ -339,7 +339,7 @@ piglit_display(void) glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); Tests[CurrentTest].func(Tests[CurrentTest].param); - glutSwapBuffers(); + piglit_present_results(); return PIGLIT_PASS; } diff --git a/tests/texturing/texrect-many.c b/tests/texturing/texrect-many.c index f41a9520..11e75d0f 100644 --- a/tests/texturing/texrect-many.c +++ b/tests/texturing/texrect-many.c @@ -93,7 +93,7 @@ piglit_display(void) DoFrame(); pass = DoTest(); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/texturing/texredefine.c b/tests/texturing/texredefine.c index 6879689d..9c69b276 100644 --- a/tests/texturing/texredefine.c +++ b/tests/texturing/texredefine.c @@ -196,7 +196,7 @@ piglit_display(void) } glDisable(GL_TEXTURE_2D); - glutSwapBuffers(); + piglit_present_results(); return pass ? PIGLIT_PASS : PIGLIT_FAIL; } diff --git a/tests/texturing/texsubimage.c b/tests/texturing/texsubimage.c index a92ea92a..f2ca3ece 100644 --- a/tests/texturing/texsubimage.c +++ b/tests/texturing/texsubimage.c @@ -305,7 +305,7 @@ test_format(GLenum target, GLenum intFormat) piglit_draw_rect_tex3d(0, 0, w, h, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0); glReadPixels(0, 0, w, h, GL_RGBA, GL_UNSIGNED_BYTE, testImg); - glutSwapBuffers(); + piglit_present_results(); if (!equal_images(ref, testImg, w, h)) { printf("texsubimage failed\n"); diff --git a/tests/texturing/texture-al.c b/tests/texturing/texture-al.c index 339bfaef..5706c1e8 100644 --- a/tests/texturing/texture-al.c +++ b/tests/texturing/texture-al.c @@ -173,7 +173,7 @@ test_teximage_formats(void) return GL_FALSE; } - glutSwapBuffers(); + piglit_present_results(); } free(image); diff --git a/tests/texturing/texture-packed-formats.c b/tests/texturing/texture-packed-formats.c index 9fd597d6..91e0a2fa 100644 --- a/tests/texturing/texture-packed-formats.c +++ b/tests/texturing/texture-packed-formats.c @@ -371,7 +371,7 @@ Test(GLuint intFmt, GLuint dims) glPopMatrix(); } - glutSwapBuffers(); + piglit_present_results(); return pass; } diff --git a/tests/texturing/texture-rg.c b/tests/texturing/texture-rg.c index 84a5f9b8..927a145e 100644 --- a/tests/texturing/texture-rg.c +++ b/tests/texturing/texture-rg.c @@ -225,7 +225,7 @@ test_teximage_formats(void) return GL_FALSE; } - glutSwapBuffers(); + piglit_present_results(); } free(image); |