[Piglit] [PATCH 3/7] khr_texture_compression_astc: Loosen up the tolerence for sRGB tests

Nanley Chery nanleychery at gmail.com
Mon Jul 25 19:40:48 UTC 2016


On Fri, Jul 22, 2016 at 02:01:33PM -0700, Anuj Phogat wrote:
> This will allow testing sRGB formats which have known precision issues
> in astcenc in void extent blocks. See khronos bug#11294 for details.
> 
> Cc: Nanley Chery <nanley.g.chery at intel.com>
> Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>

This patch is,
Reviewed-by: Nanley Chery <nanley.g.chery at intel.com>

> ---
>  .../khr_texture_compression_astc/khr_compressed_astc-miptree.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/tests/spec/khr_texture_compression_astc/khr_compressed_astc-miptree.c b/tests/spec/khr_texture_compression_astc/khr_compressed_astc-miptree.c
> index 0f82695..f5f8988 100644
> --- a/tests/spec/khr_texture_compression_astc/khr_compressed_astc-miptree.c
> +++ b/tests/spec/khr_texture_compression_astc/khr_compressed_astc-miptree.c
> @@ -247,6 +247,16 @@ test_miptrees(void* input_type)
>  		"GL_KHR_texture_compression_astc_hdr");
>  	const bool check_error = is_hdr_test && !has_hdr;
>  	int block_dims;
> +
> +	if (is_srgb_test)
> +		/* Loosen up the tolerence for sRGB tests. This will allow testing
> +		 * sRGB formats which have known precision issues in void extent
> +		 * blocks. See khronos bug#11294 for details.
> +		 */
> +		piglit_set_tolerance_for_bits(7, 7, 7, 7);
> +	else
> +		piglit_set_tolerance_for_bits(8, 8, 8, 8);
> +
>  	for (block_dims = 0; block_dims < ARRAY_SIZE(block_dim_str); ++block_dims) {
>  
>  		/* Texture objects. */
> -- 
> 2.5.5
> 
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/piglit


More information about the Piglit mailing list