This will allow us to keep track of known precision issue in astcenc with sRGB void extent blocks (Khronos bug#11294).
Cc: Nanley Chery <[email protected]> Signed-off-by: Anuj Phogat <[email protected]> --- tests/all.py | 2 +- .../khr_texture_compression_astc/khr_compressed_astc-miptree.c | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/all.py b/tests/all.py index dfad955..6db24ad 100644 --- a/tests/all.py +++ b/tests/all.py @@ -4355,7 +4355,7 @@ with profile.group_manager( g(['khr_compressed_astc-basic_gl'], 'basic-gl') g(['khr_compressed_astc-basic_gles2'], 'basic-gles') - for subtest in ('hdr', 'ldr', 'srgb'): + for subtest in ('hdr', 'ldr', 'srgb', "srgb-fp"): g(['khr_compressed_astc-miptree_gl', '-subtest', subtest], 'miptree-gl {}'.format(subtest)) g(['khr_compressed_astc-miptree_gles2', '-subtest', subtest], 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 f5f8988..61edc5f 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 @@ -59,6 +59,7 @@ enum test_type TEST_TYPE_HDR, TEST_TYPE_LDR, TEST_TYPE_SRGB, + TEST_TYPE_SRGB_FP, }; enum piglit_result @@ -67,6 +68,7 @@ test_miptrees(void* input_type); static enum test_type ldr_test = TEST_TYPE_LDR; static enum test_type hdr_test = TEST_TYPE_HDR; static enum test_type srgb_test = TEST_TYPE_SRGB; +static enum test_type srgb_fp_test = TEST_TYPE_SRGB_FP; static const struct piglit_subtest subtests[] = { { "LDR Profile", @@ -86,6 +88,12 @@ static const struct piglit_subtest subtests[] = { test_miptrees, &srgb_test, }, + { + "sRGB decode full precision", + "srgb-fp", + test_miptrees, + &srgb_fp_test, + }, {NULL}, }; @@ -218,7 +226,7 @@ test_miptrees(void* input_type) const bool is_srgb_test = subtest == TEST_TYPE_SRGB; const bool is_hdr_test = subtest == TEST_TYPE_HDR; - static const char * tests[3] = {"hdr", "ldrl", "ldrs"}; + static const char * tests[4] = {"hdr", "ldrl", "ldrs", "ldrs"}; static const char * block_dim_str[14] = { "4x4", "5x4", -- 2.5.5 _______________________________________________ Piglit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/piglit
