[Mesa-dev] [PATCH 1/3] mesa: Add ARB_shader_texture_lod to the extension list; off by default.

Marek Olšák maraeo at gmail.com
Fri May 6 18:29:38 PDT 2011


Kenneth,

I have implemented R500 support in master and it works very well with
this series. There are also some new piglit tests. There was a typo in
the ARB_shader_texture_lod.frag file in src/glsl, which is fixed by
the attached patch. Other than that:

Tested-by: Marek Olšák <maraeo at gmail.com>

I am little concerned that there will be no app using this line:
#extension GL_ARB_shader_texture_lod : require

The VDrift game is an example of that.

Marek


On Fri, Apr 22, 2011 at 9:02 PM, Kenneth Graunke <kenneth at whitecape.org> wrote:
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
> ---
>  src/mesa/main/extensions.c |    2 +-
>  src/mesa/main/mtypes.h     |    1 +
>  2 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c
> index 8a0ab96..fc55184 100644
> --- a/src/mesa/main/extensions.c
> +++ b/src/mesa/main/extensions.c
> @@ -111,6 +111,7 @@ static const struct extension extension_table[] = {
>    { "GL_ARB_seamless_cube_map",                   o(ARB_seamless_cube_map),                   GL,             2009 },
>    { "GL_ARB_shader_objects",                      o(ARB_shader_objects),                      GL,             2002 },
>    { "GL_ARB_shader_stencil_export",               o(ARB_shader_stencil_export),               GL,             2009 },
> +   { "GL_ARB_shader_texture_lod",                  o(ARB_shader_texture_lod),                  GL,             2009 },
>    { "GL_ARB_shading_language_100",                o(ARB_shading_language_100),                GL,             2003 },
>    { "GL_ARB_shadow_ambient",                      o(ARB_shadow_ambient),                      GL,             2001 },
>    { "GL_ARB_shadow",                              o(ARB_shadow),                              GL,             2001 },
> @@ -142,7 +143,6 @@ static const struct extension extension_table[] = {
>    { "GL_ARB_vertex_shader",                       o(ARB_vertex_shader),                       GL,             2002 },
>    { "GL_ARB_vertex_type_2_10_10_10_rev",          o(ARB_vertex_type_2_10_10_10_rev),          GL,             2009 },
>    { "GL_ARB_window_pos",                          o(ARB_window_pos),                          GL,             2001 },
> -
>    /* EXT extensions */
>    { "GL_EXT_abgr",                                o(EXT_abgr),                                GL,             1995 },
>    { "GL_EXT_bgra",                                o(EXT_bgra),                                GL,             1995 },
> diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
> index 160ae9d..6e4c4f1 100644
> --- a/src/mesa/main/mtypes.h
> +++ b/src/mesa/main/mtypes.h
> @@ -2781,6 +2781,7 @@ struct gl_extensions
>    GLboolean ARB_seamless_cube_map;
>    GLboolean ARB_shader_objects;
>    GLboolean ARB_shader_stencil_export;
> +   GLboolean ARB_shader_texture_lod;
>    GLboolean ARB_shading_language_100;
>    GLboolean ARB_shadow;
>    GLboolean ARB_shadow_ambient;
> --
> 1.7.4.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-glsl-fix-typo-in-textureCubeLod-declaration.patch
Type: text/x-diff
Size: 1270 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20110507/35b285ca/attachment.patch>


More information about the mesa-dev mailing list