[Piglit] [PATCH 3/7] khr_texture_compression_astc: Loosen up the tolerence for sRGB tests
Anuj Phogat
anuj.phogat at gmail.com
Fri Jul 22 21:01:33 UTC 2016
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>
---
.../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
More information about the Piglit
mailing list