From 7d16e2c0cd70dc5a23b746dbc8e44c58366b5353 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Mon, 7 Mar 2011 02:03:52 +0100 Subject: mesa: add EXT_texture_compression_latc The encoding/decoding algorithms are shared with RGTC. Thanks to some magic with the base format, the RGTC texstore functions work for LATC too. swrast passes the related piglit tests besides two things: - The alpha channel is wrong (it's always 1), however the incorrect alpha channel makes some other tests fail too, so I guess it's unrelated to LATC. - Signed LATC fetches aren't correct yet (signed values are clamped to [0,1]), however RGTC has the same problem. Further testing (with other of my patches) shows that hardware drivers and softpipe work. BTW, ETQW uses this extension. --- src/mesa/main/extensions.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mesa/main/extensions.c') diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index 3840cdc5d3..519e94fec1 100644 --- a/src/mesa/main/extensions.c +++ b/src/mesa/main/extensions.c @@ -181,6 +181,7 @@ static const struct extension extension_table[] = { { "GL_EXT_texture3D", o(EXT_texture3D), GL }, { "GL_EXT_texture_array", o(EXT_texture_array), GL }, { "GL_EXT_texture_compression_dxt1", o(EXT_texture_compression_s3tc), GL | ES1 | ES2 }, + { "GL_EXT_texture_compression_latc", o(EXT_texture_compression_latc), GL }, { "GL_EXT_texture_compression_rgtc", o(ARB_texture_compression_rgtc), GL }, { "GL_EXT_texture_compression_s3tc", o(EXT_texture_compression_s3tc), GL }, { "GL_EXT_texture_cube_map", o(ARB_texture_cube_map), GL }, @@ -483,6 +484,7 @@ _mesa_enable_sw_extensions(struct gl_context *ctx) ctx->Extensions.EXT_stencil_wrap = GL_TRUE; ctx->Extensions.EXT_stencil_two_side = GL_TRUE; ctx->Extensions.EXT_texture_array = GL_TRUE; + ctx->Extensions.EXT_texture_compression_latc = GL_TRUE; ctx->Extensions.EXT_texture_env_add = GL_TRUE; ctx->Extensions.EXT_texture_env_combine = GL_TRUE; ctx->Extensions.EXT_texture_env_dot3 = GL_TRUE; -- cgit v1.2.3