Commit 63a70393 authored by Marek Olšák's avatar Marek Olšák
Browse files

fbo-generatemipmap-formats: test EXT_texture_compression_latc

parent d1921eec
...@@ -1067,6 +1067,7 @@ add_texwrap_test2(ext_packed_depth_stencil, '2D', 'GL_DEPTH24_STENCIL8') ...@@ -1067,6 +1067,7 @@ add_texwrap_test2(ext_packed_depth_stencil, '2D', 'GL_DEPTH24_STENCIL8')
ext_texture_compression_latc = Group() ext_texture_compression_latc = Group()
spec['EXT_texture_compression_latc'] = ext_texture_compression_latc spec['EXT_texture_compression_latc'] = ext_texture_compression_latc
add_fbo_generatemipmap_extension(ext_texture_compression_latc, 'GL_EXT_texture_compression_latc', 'fbo-generatemipmap-formats')
add_texwrap_test2(ext_texture_compression_latc, '2D', 'GL_COMPRESSED_LUMINANCE_LATC1') add_texwrap_test2(ext_texture_compression_latc, '2D', 'GL_COMPRESSED_LUMINANCE_LATC1')
add_texwrap_test2(ext_texture_compression_latc, '2D', 'GL_COMPRESSED_SIGNED_LUMINANCE_LATC1') add_texwrap_test2(ext_texture_compression_latc, '2D', 'GL_COMPRESSED_SIGNED_LUMINANCE_LATC1')
add_texwrap_test2(ext_texture_compression_latc, '2D', 'GL_COMPRESSED_LUMINANCE_ALPHA_LATC2') add_texwrap_test2(ext_texture_compression_latc, '2D', 'GL_COMPRESSED_LUMINANCE_ALPHA_LATC2')
......
...@@ -245,6 +245,13 @@ static const struct format_desc ati_texture_compression_3dc[] = { ...@@ -245,6 +245,13 @@ static const struct format_desc ati_texture_compression_3dc[] = {
FORMAT(GL_COMPRESSED_LUMINANCE_ALPHA_3DC_ATI) FORMAT(GL_COMPRESSED_LUMINANCE_ALPHA_3DC_ATI)
}; };
static const struct format_desc ext_texture_compression_latc[] = {
FORMAT(GL_COMPRESSED_LUMINANCE_LATC1_EXT),
FORMAT(GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT),
FORMAT(GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT),
FORMAT(GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT)
};
struct test_desc { struct test_desc {
const struct format_desc *format; const struct format_desc *format;
unsigned num_formats; unsigned num_formats;
...@@ -370,4 +377,10 @@ static const struct test_desc test_sets[] = { ...@@ -370,4 +377,10 @@ static const struct test_desc test_sets[] = {
"GL_ATI_texture_compression_3dc", "GL_ATI_texture_compression_3dc",
{"GL_ATI_texture_compression_3dc"} {"GL_ATI_texture_compression_3dc"}
}, },
{
ext_texture_compression_latc,
ARRAY_SIZE(ext_texture_compression_latc),
"GL_EXT_texture_compression_latc",
{"GL_EXT_texture_compression_latc"}
},
}; };
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