[Mesa-dev] [PATCH] main: Don't advertise ARB/OES_get_program_binary

Kenneth Graunke kenneth at whitecape.org
Fri Dec 19 18:54:30 PST 2014


On Friday, December 19, 2014 04:36:55 PM Jason Ekstrand wrote:
> All we have right now are stub implementations of these that do nothing.
> Let's avoid confusing apps by advertising an extension we don't actually
> support.
> 
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=87516
> ---
>  src/mesa/main/extensions.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c
> index 0df04c2..d7bc28a 100644
> --- a/src/mesa/main/extensions.c
> +++ b/src/mesa/main/extensions.c
> @@ -118,7 +118,7 @@ static const struct extension extension_table[] = {
>     { "GL_ARB_fragment_shader",                     o(ARB_fragment_shader),                     GL,             2002 },
>     { "GL_ARB_framebuffer_object",                  o(ARB_framebuffer_object),                  GL,             2005 },
>     { "GL_ARB_framebuffer_sRGB",                    o(EXT_framebuffer_sRGB),                    GL,             1998 },
> -   { "GL_ARB_get_program_binary",                  o(dummy_true),                              GL,             2010 },
> +   { "GL_ARB_get_program_binary",                  o(dummy_false),                              GL,             2010 },
>     { "GL_ARB_gpu_shader5",                         o(ARB_gpu_shader5),                         GLC,            2010 },
>     { "GL_ARB_half_float_pixel",                    o(dummy_true),                              GL,             2003 },
>     { "GL_ARB_half_float_vertex",                   o(ARB_half_float_vertex),                   GL,             2008 },
> @@ -296,7 +296,7 @@ static const struct extension extension_table[] = {
>     { "GL_OES_fbo_render_mipmap",                   o(dummy_true),                                   ES1 | ES2, 2005 },
>     { "GL_OES_fixed_point",                         o(dummy_true),                                   ES1,       2002 },
>     { "GL_OES_framebuffer_object",                  o(dummy_true),                                   ES1,       2005 },
> -   { "GL_OES_get_program_binary",                  o(dummy_true),                                         ES2, 2008 },
> +   { "GL_OES_get_program_binary",                  o(dummy_false),                                         ES2, 2008 },
>     { "GL_OES_mapbuffer",                           o(dummy_true),                                   ES1 | ES2, 2005 },
>     { "GL_OES_packed_depth_stencil",                o(dummy_true),                                   ES1 | ES2, 2007 },
>     { "GL_OES_point_size_array",                    o(dummy_true),                                   ES1,       2004 },
> 

I've always thought it was stupid to advertise GL_ARB_get_program_binary.
There's no benefit and it can only screw up applications.  Ian wanted it
enabled, if I recall.

Hunk 1 is:
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

As you said, hunk 2 is probably not legal.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20141219/cc86656c/attachment.sig>


More information about the mesa-dev mailing list