[Piglit] [PATCH 1/2] fbo-generatemipmap-formats: increase tolerance for compressed formats

Brian Paul brianp at vmware.com
Tue Aug 28 15:04:23 PDT 2012


On 08/28/2012 03:39 PM, Marek Olšák wrote:
> ---
>   tests/fbo/fbo-generatemipmap-formats.c |    9 +++++++++
>   1 file changed, 9 insertions(+)
>
> diff --git a/tests/fbo/fbo-generatemipmap-formats.c b/tests/fbo/fbo-generatemipmap-formats.c
> index 1282a1d..4a7d58e 100644
> --- a/tests/fbo/fbo-generatemipmap-formats.c
> +++ b/tests/fbo/fbo-generatemipmap-formats.c
> @@ -359,6 +359,15 @@ test_mipmap_drawing(int x, int y, int level, GLuint internalformat)
>   	if (a_size>  8)
>   		a_size = 8;
>
> +	if (compressed) {
> +		l_size = MIN2(7, l_size);
> +		i_size = MIN2(7, i_size);
> +		r_size = MIN2(7, r_size);
> +		g_size = MIN2(7, g_size);
> +		b_size = MIN2(7, b_size);
> +		a_size = MIN2(7, a_size);
> +	}
> +
>   	if (i_size) {
>   		piglit_set_tolerance_for_bits(i_size, i_size, i_size, i_size);
>   	} else if (l_size) {

Both patches LGTM.

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


More information about the Piglit mailing list