mesa: GL_ARB_map_buffer_alignment is not optional
Every driver supports it. All current and future Gallium drivers always support it, and all existing classic drivers support it. v2: Making GL_ARB_map_buffer_alignment a desktop OpenGL extension only. v3: Squash two commits together. v4 (idr): MIN_MAP_BUFFER_ALIGNMENT queries don't have any dependencies. In previous versions of the patch it depended on EXTRA_API_GL which would prevent the query from working in core profile contexts. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:

committed by
Ian Romanick

parent
b9aaa96ec3
commit
7fd6ad7adc
@@ -110,7 +110,7 @@ static const struct extension extension_table[] = {
|
||||
{ "GL_ARB_instanced_arrays", o(ARB_instanced_arrays), GL, 2008 },
|
||||
{ "GL_ARB_internalformat_query", o(ARB_internalformat_query), GL, 2011 },
|
||||
{ "GL_ARB_invalidate_subdata", o(dummy_true), GL, 2012 },
|
||||
{ "GL_ARB_map_buffer_alignment", o(ARB_map_buffer_alignment), GL, 2011 },
|
||||
{ "GL_ARB_map_buffer_alignment", o(dummy_true), GL, 2011 },
|
||||
{ "GL_ARB_map_buffer_range", o(ARB_map_buffer_range), GL, 2008 },
|
||||
{ "GL_ARB_multi_draw_indirect", o(ARB_draw_indirect), GLC, 2012 },
|
||||
{ "GL_ARB_multisample", o(dummy_true), GLL, 1994 },
|
||||
|
@@ -382,7 +382,6 @@ EXTRA_EXT(OES_EGL_image_external);
|
||||
EXTRA_EXT(ARB_blend_func_extended);
|
||||
EXTRA_EXT(ARB_uniform_buffer_object);
|
||||
EXTRA_EXT(ARB_timer_query);
|
||||
EXTRA_EXT(ARB_map_buffer_alignment);
|
||||
EXTRA_EXT(ARB_texture_cube_map_array);
|
||||
EXTRA_EXT(ARB_texture_buffer_range);
|
||||
EXTRA_EXT(ARB_texture_multisample);
|
||||
|
@@ -716,7 +716,7 @@ descriptor=[
|
||||
[ "TIMESTAMP", "LOC_CUSTOM, TYPE_INT64, 0, extra_ARB_timer_query" ],
|
||||
|
||||
# GL_ARB_map_buffer_alignment
|
||||
[ "MIN_MAP_BUFFER_ALIGNMENT", "CONTEXT_INT(Const.MinMapBufferAlignment), extra_ARB_map_buffer_alignment" ],
|
||||
[ "MIN_MAP_BUFFER_ALIGNMENT", "CONTEXT_INT(Const.MinMapBufferAlignment), NO_EXTRA" ],
|
||||
|
||||
# GL_ARB_texture_cube_map_array
|
||||
[ "TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB", "LOC_CUSTOM, TYPE_INT, TEXTURE_CUBE_ARRAY_INDEX, extra_ARB_texture_cube_map_array" ],
|
||||
|
@@ -3405,7 +3405,6 @@ struct gl_extensions
|
||||
GLboolean ARB_half_float_vertex;
|
||||
GLboolean ARB_instanced_arrays;
|
||||
GLboolean ARB_internalformat_query;
|
||||
GLboolean ARB_map_buffer_alignment;
|
||||
GLboolean ARB_map_buffer_range;
|
||||
GLboolean ARB_occlusion_query;
|
||||
GLboolean ARB_occlusion_query2;
|
||||
|
@@ -742,8 +742,6 @@ void st_init_extensions(struct st_context *st)
|
||||
ctx->Const.MinMapBufferAlignment =
|
||||
screen->get_param(screen, PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT);
|
||||
|
||||
ctx->Extensions.ARB_map_buffer_alignment = GL_TRUE;
|
||||
|
||||
if (screen->get_param(screen, PIPE_CAP_TEXTURE_BUFFER_OBJECTS)) {
|
||||
ctx->Extensions.ARB_texture_buffer_object = GL_TRUE;
|
||||
|
||||
|
Reference in New Issue
Block a user