Commit f7b7592d authored by Marek Olšák's avatar Marek Olšák

fbo-generatemipmap-formats: test EXT_texture_snorm

parent 63a70393
......@@ -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')
......
......@@ -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"}
},
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment