summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2011-02-17 06:43:06 +0100
committerMarek Olšák <maraeo@gmail.com>2011-02-17 06:43:06 +0100
commitf7b7592df26d8d594cd3f9abd2893aac0e9eea36 (patch)
treedd7e77d84635f4a9a587cd01cdac01e323e3fe1c
parent63a703930d7db0f9000f5a3b127187aee56ed8aa (diff)
fbo-generatemipmap-formats: test EXT_texture_snorm
-rw-r--r--tests/all.tests4
-rw-r--r--tests/fbo/fbo-formats.h33
2 files changed, 37 insertions, 0 deletions
diff --git a/tests/all.tests b/tests/all.tests
index 8050ac8db..4215ae029 100644
--- a/tests/all.tests
+++ b/tests/all.tests
@@ -1147,6 +1147,10 @@ add_fbo_generatemipmap_extension(ext_texture_shared_exponent, 'GL_EXT_texture_sh
add_fbo_clear_extension(ext_texture_shared_exponent, 'GL_EXT_texture_shared_exponent', 'fbo-clear-formats')
add_texwrap_test2(ext_texture_shared_exponent, '2D', 'GL_RGB9_E5')
+ext_texture_snorm = Group()
+spec['EXT_texture_snorm'] = ext_texture_snorm
+add_fbo_generatemipmap_extension(ext_texture_snorm, 'GL_EXT_texture_snorm', 'fbo-generatemipmap-formats')
+
ext_texture_srgb = Group()
spec['EXT_texture_sRGB'] = ext_texture_srgb
add_fbo_generatemipmap_extension(ext_texture_srgb, 'GL_EXT_texture_sRGB', 'fbo-generatemipmap-formats')
diff --git a/tests/fbo/fbo-formats.h b/tests/fbo/fbo-formats.h
index c25a1b7b6..8c89d1394 100644
--- a/tests/fbo/fbo-formats.h
+++ b/tests/fbo/fbo-formats.h
@@ -252,6 +252,33 @@ static const struct format_desc ext_texture_compression_latc[] = {
FORMAT(GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT)
};
+static const struct format_desc ext_texture_snorm[] = {
+ FORMAT(GL_RED_SNORM),
+ FORMAT(GL_RG_SNORM),
+ FORMAT(GL_RGB_SNORM),
+ FORMAT(GL_RGBA_SNORM),
+ FORMAT(GL_R8_SNORM),
+ FORMAT(GL_RG8_SNORM),
+ FORMAT(GL_RGB8_SNORM),
+ FORMAT(GL_RGBA8_SNORM),
+ FORMAT(GL_R16_SNORM),
+ FORMAT(GL_RG16_SNORM),
+ FORMAT(GL_RGB16_SNORM),
+ FORMAT(GL_RGBA16_SNORM),
+ FORMAT(GL_ALPHA_SNORM),
+ FORMAT(GL_LUMINANCE_SNORM),
+ FORMAT(GL_LUMINANCE_ALPHA_SNORM),
+ FORMAT(GL_INTENSITY_SNORM),
+ FORMAT(GL_ALPHA8_SNORM),
+ FORMAT(GL_LUMINANCE8_SNORM),
+ FORMAT(GL_LUMINANCE8_ALPHA8_SNORM),
+ FORMAT(GL_INTENSITY8_SNORM),
+ FORMAT(GL_ALPHA16_SNORM),
+ FORMAT(GL_LUMINANCE16_SNORM),
+ FORMAT(GL_LUMINANCE16_ALPHA16_SNORM),
+ FORMAT(GL_INTENSITY16_SNORM)
+};
+
struct test_desc {
const struct format_desc *format;
unsigned num_formats;
@@ -383,4 +410,10 @@ static const struct test_desc test_sets[] = {
"GL_EXT_texture_compression_latc",
{"GL_EXT_texture_compression_latc"}
},
+ {
+ ext_texture_snorm,
+ ARRAY_SIZE(ext_texture_snorm),
+ "GL_EXT_texture_snorm",
+ {"GL_EXT_texture_snorm"}
+ },
};