[Piglit] [PATCH] util-gl: use num_components when available when printing bad pixel ubyte

Brian Paul brianp at vmware.com
Fri Feb 2 15:11:04 UTC 2018


On 02/02/2018 04:11 AM, Alejandro PiƱeiro wrote:
> Instead of a hardcoded 3.
> ---
>   tests/util/piglit-util-gl.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/util/piglit-util-gl.c b/tests/util/piglit-util-gl.c
> index e9c20385ee..df39c1c877 100644
> --- a/tests/util/piglit-util-gl.c
> +++ b/tests/util/piglit-util-gl.c
> @@ -1249,7 +1249,7 @@ probe_rect_ubyte(int x, int y, int w, int h, int num_components,
>   
>   			if (!silent) {
>   				print_bad_pixel_ubyte(
> -					x + i, y + j, 3,
> +					x + i, y + j, num_components,
>   					expected, probe);
>   			}
>   			free(pixels);
> 

I posted the same patch a few days ago.  It was reviewed but I forgot to 
push it.  I'll do that now.

-Brian


More information about the Piglit mailing list