mesa: enable ARB_vertex_attrib_64bit in compat profile

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
Timothy Arceri 2018-06-20 13:05:05 +10:00
parent c283b413c1
commit ddb351f7fe
4 changed files with 24 additions and 23 deletions

View file

@ -113,16 +113,16 @@ functions = {
# For Mesa this effectively means OpenGL 3.2 is required. It seems
# unlikely that Mesa will ever get support for any of the NV extensions
# that add "equivalent functionality."
"VertexAttribL1d": exec_info(core=32),
"VertexAttribL2d": exec_info(core=32),
"VertexAttribL3d": exec_info(core=32),
"VertexAttribL4d": exec_info(core=32),
"VertexAttribL1dv": exec_info(core=32),
"VertexAttribL2dv": exec_info(core=32),
"VertexAttribL3dv": exec_info(core=32),
"VertexAttribL4dv": exec_info(core=32),
"VertexAttribLPointer": exec_info(core=32),
"GetVertexAttribLdv": exec_info(core=32),
"VertexAttribL1d": exec_info(compatibility=32, core=32),
"VertexAttribL2d": exec_info(compatibility=32, core=32),
"VertexAttribL3d": exec_info(compatibility=32, core=32),
"VertexAttribL4d": exec_info(compatibility=32, core=32),
"VertexAttribL1dv": exec_info(compatibility=32, core=32),
"VertexAttribL2dv": exec_info(compatibility=32, core=32),
"VertexAttribL3dv": exec_info(compatibility=32, core=32),
"VertexAttribL4dv": exec_info(compatibility=32, core=32),
"VertexAttribLPointer": exec_info(compatibility=32, core=32),
"GetVertexAttribLdv": exec_info(compatibility=32, core=32),
# OpenGL 4.1 / GL_ARB_viewport_array. The extension spec says:
#

View file

@ -175,7 +175,7 @@ EXT(ARB_transpose_matrix , dummy_true
EXT(ARB_uniform_buffer_object , ARB_uniform_buffer_object , GLL, GLC, x , x , 2009)
EXT(ARB_vertex_array_bgra , EXT_vertex_array_bgra , GLL, GLC, x , x , 2008)
EXT(ARB_vertex_array_object , dummy_true , GLL, GLC, x , x , 2006)
EXT(ARB_vertex_attrib_64bit , ARB_vertex_attrib_64bit , x , GLC, x , x , 2010)
EXT(ARB_vertex_attrib_64bit , ARB_vertex_attrib_64bit , 32, GLC, x , x , 2010)
EXT(ARB_vertex_attrib_binding , dummy_true , GLL, GLC, x , x , 2012)
EXT(ARB_vertex_buffer_object , dummy_true , GLL, x , x , x , 2003)
EXT(ARB_vertex_program , ARB_vertex_program , GLL, x , x , x , 2002)

View file

@ -603,6 +603,18 @@ const struct function common_desktop_functions_possible[] = {
{ "glUniformMatrix4x3dv", 40, -1 },
{ "glGetUniformdv", 43, -1 },
/* GL 4.1 */
{ "glVertexAttribL1d", 41, -1 },
{ "glVertexAttribL2d", 41, -1 },
{ "glVertexAttribL3d", 41, -1 },
{ "glVertexAttribL4d", 41, -1 },
{ "glVertexAttribL1dv", 41, -1 },
{ "glVertexAttribL2dv", 41, -1 },
{ "glVertexAttribL3dv", 41, -1 },
{ "glVertexAttribL4dv", 41, -1 },
{ "glVertexAttribLPointer", 41, -1 },
{ "glGetVertexAttribLdv", 41, -1 },
/* GL 4.3 */
{ "glIsRenderbuffer", 43, -1 },
{ "glBindRenderbuffer", 43, -1 },
@ -1765,17 +1777,6 @@ const struct function gl_core_functions_possible[] = {
{ "glValidateProgramPipeline", 43, -1 },
{ "glGetProgramPipelineInfoLog", 43, -1 },
{ "glVertexAttribL1d", 41, -1 },
{ "glVertexAttribL2d", 41, -1 },
{ "glVertexAttribL3d", 41, -1 },
{ "glVertexAttribL4d", 41, -1 },
{ "glVertexAttribL1dv", 41, -1 },
{ "glVertexAttribL2dv", 41, -1 },
{ "glVertexAttribL3dv", 41, -1 },
{ "glVertexAttribL4dv", 41, -1 },
{ "glVertexAttribLPointer", 41, -1 },
{ "glGetVertexAttribLdv", 41, -1 },
// { "glCreateSyncFromCLeventARB", 43, -1 }, // XXX: Add to xml
{ "glDrawArraysInstancedBaseInstance", 43, -1 },

View file

@ -211,7 +211,7 @@ install_vtxfmt(struct gl_context *ctx, struct _glapi_table *tab,
SET_VertexAttribL1ui64vARB(tab, vfmt->VertexAttribL1ui64vARB);
}
if (ctx->API == API_OPENGL_CORE) {
if (_mesa_is_desktop_gl(ctx)) {
/* GL_ARB_vertex_attrib_64bit */
SET_VertexAttribL1d(tab, vfmt->VertexAttribL1d);
SET_VertexAttribL2d(tab, vfmt->VertexAttribL2d);