[Piglit] [PATCH] Fix swapbuffers timing in arb_seamless_cubemap test.

Chad Versace chad.versace at linux.intel.com
Tue Aug 7 09:34:31 PDT 2012


On 08/07/2012 02:11 AM, Kenneth Graunke wrote:
> Prior to this patch, the test would:
> 1. Draw into the back buffer.
> 2. glutSwapBuffers
> 3. Read/probe pixel values...from what used to be the front buffer?
> 
> This patch moves the SwapBuffers to after the probing, which should
> ensure that draws and reads use the same buffer.  It also switches
> from glutSwapBuffers to piglit_present_results().
> 
> This may help with bug #46212.
> 
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=46212
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
> ---
>  tests/spec/arb_seamless_cube_map/arb_seamless_cubemap.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Chad Versace <chad.versace at linux.intel.com>


More information about the Piglit mailing list