[Piglit] [PATCH piglit 6/6] compressedteximage: Add tests for the four BPTC formats
Neil Roberts
neil at linux.intel.com
Tue Jul 29 08:27:40 PDT 2014
---
tests/all.py | 4 ++++
tests/texturing/compressedteximage.c | 10 ++++++++++
2 files changed, 14 insertions(+)
diff --git a/tests/all.py b/tests/all.py
index e7446b1..a12d073 100644
--- a/tests/all.py
+++ b/tests/all.py
@@ -2291,6 +2291,10 @@ add_concurrent_test(arb_texture_compression_bptc, 'bptc-modes')
add_fbo_generatemipmap_extension(arb_texture_compression_bptc, 'GL_ARB_texture_compression_bptc-unorm', 'fbo-generatemipmap-formats')
add_fbo_generatemipmap_extension(arb_texture_compression_bptc, 'GL_ARB_texture_compression_bptc-float', 'fbo-generatemipmap-formats')
add_texwrap_format_tests(arb_texture_compression_bptc, 'GL_ARB_texture_compression_bptc')
+add_concurrent_test(arb_texture_compression_bptc, 'compressedteximage GL_COMPRESSED_RGBA_BPTC_UNORM')
+add_concurrent_test(arb_texture_compression_bptc, 'compressedteximage GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM')
+add_concurrent_test(arb_texture_compression_bptc, 'compressedteximage GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT')
+add_concurrent_test(arb_texture_compression_bptc, 'compressedteximage GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT')
ext_vertex_array_bgra = {}
spec['EXT_vertex_array_bgra'] = ext_vertex_array_bgra
diff --git a/tests/texturing/compressedteximage.c b/tests/texturing/compressedteximage.c
index 96584ce..e2ed202 100644
--- a/tests/texturing/compressedteximage.c
+++ b/tests/texturing/compressedteximage.c
@@ -81,6 +81,11 @@ const char *RGTC_signed[] = {
NULL
};
+const char *BPTC[] = {
+ "GL_ARB_texture_compression_bptc",
+ NULL
+};
+
#define FORMAT(t, ext) { #t, t, ext }
static struct format formats[] = {
FORMAT(GL_COMPRESSED_RGB_FXT1_3DFX, FXT1),
@@ -96,6 +101,11 @@ static struct format formats[] = {
FORMAT(GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT, S3TC_srgb),
FORMAT(GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT, S3TC_srgb),
+ FORMAT(GL_COMPRESSED_RGBA_BPTC_UNORM, BPTC),
+ FORMAT(GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM, BPTC),
+ FORMAT(GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT, BPTC),
+ FORMAT(GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT, BPTC),
+
FORMAT(GL_COMPRESSED_RED_RGTC1_EXT, RGTC),
FORMAT(GL_COMPRESSED_SIGNED_RED_RGTC1_EXT, RGTC_signed),
FORMAT(GL_COMPRESSED_RED_GREEN_RGTC2_EXT, RGTC),
--
1.9.3
More information about the Piglit
mailing list