[Mesa-dev] [RFC 04/10] mesa: add ASTC extensions to the extensions table

Matt Turner mattst88 at gmail.com
Tue May 19 19:11:44 PDT 2015


On Tue, May 19, 2015 at 5:48 PM, Nanley Chery <nanleychery at gmail.com> wrote:
> From: Nanley Chery <nanley.g.chery at intel.com>
>
> Signed-off-by: Nanley Chery <nanley.g.chery at intel.com>
> ---
>  src/mesa/main/extensions.c | 3 +++
>  src/mesa/main/mtypes.h     | 3 +++
>  2 files changed, 6 insertions(+)
>
> diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c
> index c82416a..daf16f9 100644
> --- a/src/mesa/main/extensions.c
> +++ b/src/mesa/main/extensions.c
> @@ -332,8 +332,11 @@ static const struct extension extension_table[] = {
>     { "GL_OES_texture_mirrored_repeat",             o(dummy_true),                                   ES1,       2005 },
>     { "GL_OES_texture_npot",                        o(ARB_texture_non_power_of_two),                 ES1 | ES2, 2005 },
>     { "GL_OES_vertex_array_object",                 o(dummy_true),                                   ES1 | ES2, 2010 },
> +   { "GL_OES_texture_compression_astc",            o(OES_texture_compression_astc),                       ES2, 2012 },

Alphabetize.

>
>     /* KHR extensions */
> +   { "GL_KHR_texture_compression_astc_ldr",        o(KHR_texture_compression_astc_ldr),        GL       | ES2, 2012 },
> +   { "GL_KHR_texture_compression_astc_hdr",        o(KHR_texture_compression_astc_hdr),        GL       | ES2, 2012 },
>     { "GL_KHR_debug",                               o(dummy_true),                              GL,             2012 },
>     { "GL_KHR_context_flush_control",               o(dummy_true),                              GL       | ES2, 2014 },

Alphabetize.

>
> diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
> index 8342517..9283759 100644
> --- a/src/mesa/main/mtypes.h
> +++ b/src/mesa/main/mtypes.h
> @@ -3752,6 +3752,9 @@ struct gl_extensions
>     GLboolean NV_texture_rectangle;
>     GLboolean NV_vdpau_interop;
>     GLboolean TDFX_texture_compression_FXT1;
> +   GLboolean KHR_texture_compression_astc_ldr;
> +   GLboolean KHR_texture_compression_astc_hdr;
> +   GLboolean OES_texture_compression_astc;

Looks like the TDFX extension isn't alphabetized, but you can still
sort the KHR extensions between INTEL and MESA (relative to one
another, as well) and sort the OES extension with the other OES ones.

>     GLboolean OES_EGL_image;
>     GLboolean OES_draw_texture;
>     GLboolean OES_depth_texture_cube_map;
> --
> 2.4.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list