Mesa (7.10): mesa: Change OES_standard_derivatives to be stand-alone extension

Ian Romanick idr at kemper.freedesktop.org
Mon Feb 28 21:23:55 UTC 2011


Module: Mesa
Branch: 7.10
Commit: 3a4ab56f3263991dd3bb5c33c1174ac6024dc93a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3a4ab56f3263991dd3bb5c33c1174ac6024dc93a

Author: Chad Versace <chad.versace at intel.com>
Date:   Wed Jan 12 15:47:26 2011 -0800

mesa: Change OES_standard_derivatives to be stand-alone extension

Add a bit in struct gl_extensions for OES_standard_derivatives, and enable
the bit by default. Advertise the extension only if the bit is enabled.

Previously, OES_standard_derivatives was advertised in GLES2 contexts
if ARB_framebuffer_object was enabled.
(cherry picked from commit 78838b2d1bd88f948030cd60479b832b661ccd3c)

---

 src/mesa/main/extensions.c |    3 ++-
 src/mesa/main/mtypes.h     |    1 +
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c
index a3ab85b..05cbab6 100644
--- a/src/mesa/main/extensions.c
+++ b/src/mesa/main/extensions.c
@@ -231,7 +231,7 @@ static const struct extension extension_table[] = {
    { "GL_OES_read_format",                         o(OES_read_format),                         GL | ES1       },
    { "GL_OES_rgb8_rgba8",                          o(EXT_framebuffer_object),                       ES1 | ES2 },
    { "GL_OES_single_precision",                    o(dummy_true),                                   ES1       },
-   { "GL_OES_standard_derivatives",                o(ARB_fragment_shader),                                ES2 },
+   { "GL_OES_standard_derivatives",                o(OES_standard_derivatives),                           ES2 },
    { "GL_OES_stencil1",                            o(dummy_false),                     DISABLE                },
    { "GL_OES_stencil4",                            o(dummy_false),                     DISABLE                },
    { "GL_OES_stencil8",                            o(EXT_framebuffer_object),                       ES1 | ES2 },
@@ -350,6 +350,7 @@ static const size_t default_extensions[] = {
    o(EXT_vertex_array),
 
    o(OES_read_format),
+   o(OES_standard_derivatives),
 
    /* Vendor Extensions */
    o(APPLE_packed_pixels),
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index 0be7baf..724b0ea 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -2771,6 +2771,7 @@ struct gl_extensions
    GLboolean EXT_vertex_array;
    GLboolean EXT_vertex_array_bgra;
    GLboolean EXT_vertex_array_set;
+   GLboolean OES_standard_derivatives;
    /* vendor extensions */
    GLboolean APPLE_client_storage;
    GLboolean APPLE_packed_pixels;




More information about the mesa-commit mailing list