[Piglit] [PATCH piglit 5/6] texwrap: Add the BPTC formats

Neil Roberts neil at linux.intel.com
Tue Jul 29 08:27:39 PDT 2014


---
 tests/all.py              |  1 +
 tests/texturing/texwrap.c | 13 +++++++++++++
 2 files changed, 14 insertions(+)

diff --git a/tests/all.py b/tests/all.py
index 053b0dd..e7446b1 100644
--- a/tests/all.py
+++ b/tests/all.py
@@ -2290,6 +2290,7 @@ arb_texture_compression_bptc['invalid formats'] = concurrent_test('arb_texture_c
 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')
 
 ext_vertex_array_bgra = {}
 spec['EXT_vertex_array_bgra'] = ext_vertex_array_bgra
diff --git a/tests/texturing/texwrap.c b/tests/texturing/texwrap.c
index 5072cde..82bcf07 100644
--- a/tests/texturing/texwrap.c
+++ b/tests/texturing/texwrap.c
@@ -190,6 +190,13 @@ static const struct format_desc ext_texture_compression_s3tc[] = {
 	{FORMAT(GL_COMPRESSED_RGBA_S3TC_DXT5), 4, 4, 4, 4, 0, 0, 0, 0, 1},
 };
 
+static const struct format_desc arb_texture_compression_bptc[] = {
+	{FORMAT(GL_COMPRESSED_RGBA_BPTC_UNORM), 4, 4, 4, 4, 0, 0, 0, 0, 1},
+	{FORMAT(GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM), 4, 4, 4, 4, 0, 0, 0, 0, 1, 1},
+	{FORMAT(GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT), 4, 4, 4, 0, 0, 0, 0, 0, 1, 0, FLOAT_TYPE},
+	{FORMAT(GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT), 4, 4, 4, 0, 0, 0, 0, 0, 1, 0, FLOAT_TYPE},
+};
+
 static const struct format_desc ext_texture_srgb_compressed[] = {
 	{FORMAT(GL_COMPRESSED_SRGB), 4, 4, 4, 0, 0, 0, 0, 0, 1, 1},
 	{FORMAT(GL_COMPRESSED_SRGB_ALPHA), 4, 4, 4, 4, 0, 0, 0, 0, 1, 1},
@@ -361,6 +368,12 @@ static const struct test_desc test_sets[] = {
 		{"GL_EXT_texture_compression_s3tc"},
 	},
 	{
+		arb_texture_compression_bptc,
+		ARRAY_SIZE(arb_texture_compression_bptc),
+		"GL_ARB_texture_compression_bptc",
+		{"GL_ARB_texture_compression_bptc"},
+	},
+	{
 		arb_depth_texture,
 		ARRAY_SIZE(arb_depth_texture),
 		"GL_ARB_depth_texture",
-- 
1.9.3



More information about the Piglit mailing list