[Piglit] [PATCH 2/3] glx/glx-multithread-texture: Don't probe an undefined back buffer

Brian Paul brianp at vmware.com
Wed Jun 21 14:22:54 UTC 2017


On 06/21/2017 06:25 AM, Thomas Hellstrom wrote:
> Backbuffer contents become undefined after a swapbuffer call, so instead
> probe the front buffer. Alternatively we can of course probe the back
> before the swapbuffer call.
>
> Cc: Frank Henigman <fjhenigman at google.com>
> Signed-off-by: Thomas Hellstrom <thellstrom at vmware.com>
> ---
>   tests/glx/glx-multithread-texture.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/tests/glx/glx-multithread-texture.c b/tests/glx/glx-multithread-texture.c
> index c838fb7..08121e3 100644
> --- a/tests/glx/glx-multithread-texture.c
> +++ b/tests/glx/glx-multithread-texture.c
> @@ -151,6 +151,7 @@ draw_func(void *arg)
>
>   	glEnable(GL_TEXTURE_2D);
>   	glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE);
> +	glReadBuffer(GL_FRONT);
>
>   	while (!quit && count < num_test) {
>   		struct texture *tex = advance(&count, DRAW);
>

Reviewed-by: Brian Paul <brianp at vmware.com>



More information about the Piglit mailing list