[Piglit] [PATCH 1/3] egl-create-pbuffer-surface: Don't call eglSwapBuffers
Tapani Pälli
tapani.palli at intel.com
Tue Aug 23 08:46:55 UTC 2016
All 3 patches
Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
On 08/23/2016 11:30 AM, Michel Dänzer wrote:
> From: Michel Dänzer <michel.daenzer at amd.com>
>
> Calling eglSwapBuffers may invalidate the back buffer contents, so we
> must not do so before probing the back buffer contents. The test exits
> immediately even without -auto, so just remove the eglSwapBuffers call.
>
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
> ---
> tests/egl/egl-create-pbuffer-surface.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/tests/egl/egl-create-pbuffer-surface.c b/tests/egl/egl-create-pbuffer-surface.c
> index 6cb3d70..bd3809b 100644
> --- a/tests/egl/egl-create-pbuffer-surface.c
> +++ b/tests/egl/egl-create-pbuffer-surface.c
> @@ -74,7 +74,6 @@ draw(struct egl_state *state)
>
> eglMakeCurrent(state->egl_dpy, state->surf, state->surf, state->ctx);
> piglit_draw_rect_tex(0, 0, 256, 256, 0, 0, 1, 1);
> - eglSwapBuffers(state->egl_dpy, state->surf);
>
> if (!piglit_probe_rect_rgba(0, 0, 256, 256, purple))
> piglit_report_result(PIGLIT_FAIL);
>
More information about the Piglit
mailing list