[Mesa-dev] [PATCH 3/8] mesa: add ARB_vertex_attrib_64bit to extensions. (v2)

Dave Airlie airlied at gmail.com
Wed Apr 29 18:13:58 PDT 2015


From: Dave Airlie <airlied at redhat.com>

Just add the boilerplate bits.

v2: add to version.c

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 src/mesa/main/extensions.c | 1 +
 src/mesa/main/mtypes.h     | 1 +
 src/mesa/main/version.c    | 2 +-
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c
index 3d4965c..92bc19f 100644
--- a/src/mesa/main/extensions.c
+++ b/src/mesa/main/extensions.c
@@ -203,6 +203,7 @@ static const struct extension extension_table[] = {
    { "GL_ARB_vertex_buffer_object",                o(dummy_true),                              GLL,            2003 },
    { "GL_ARB_vertex_program",                      o(ARB_vertex_program),                      GLL,            2002 },
    { "GL_ARB_vertex_shader",                       o(ARB_vertex_shader),                       GL,             2002 },
+   { "GL_ARB_vertex_attrib_64bit",                 o(ARB_vertex_attrib_64bit),                 GLC,            2010 },
    { "GL_ARB_vertex_type_10f_11f_11f_rev",         o(ARB_vertex_type_10f_11f_11f_rev),         GL,             2013 },
    { "GL_ARB_vertex_type_2_10_10_10_rev",          o(ARB_vertex_type_2_10_10_10_rev),          GL,             2009 },
    { "GL_ARB_viewport_array",                      o(ARB_viewport_array),                      GLC,            2010 },
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index fb41430..efc723a 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -3672,6 +3672,7 @@ struct gl_extensions
    GLboolean ARB_transform_feedback3;
    GLboolean ARB_transform_feedback_instanced;
    GLboolean ARB_uniform_buffer_object;
+   GLboolean ARB_vertex_attrib_64bit;
    GLboolean ARB_vertex_program;
    GLboolean ARB_vertex_shader;
    GLboolean ARB_vertex_type_10f_11f_11f_rev;
diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c
index 5b8ac0a..e38a20c 100644
--- a/src/mesa/main/version.c
+++ b/src/mesa/main/version.c
@@ -313,7 +313,7 @@ compute_version(const struct gl_extensions *extensions,
                               consts->GLSLVersion >= 410 &&
                               extensions->ARB_ES2_compatibility &&
                               extensions->ARB_shader_precision &&
-                              0/*extensions->ARB_vertex_attrib_64bit*/ &&
+                              extensions->ARB_vertex_attrib_64bit &&
                               extensions->ARB_viewport_array);
    const GLboolean ver_4_2 = (ver_4_1 &&
                               consts->GLSLVersion >= 420 &&
-- 
2.1.0



More information about the mesa-dev mailing list