mesa: Make ARB_sampler_objects mandatory
To allow meta acceleration operations to use sampler objects the ARB_sampler_objects extension needs to be mandatory for all drivers. Because the extension doesn't have any hardware dependencies it is trivial to implement. Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:

committed by
Eric Anholt

parent
ae58f9696c
commit
8129dabb5f
@@ -49,7 +49,6 @@ intelInitExtensions(struct gl_context *ctx)
|
||||
ctx->Extensions.ARB_half_float_pixel = true;
|
||||
ctx->Extensions.ARB_map_buffer_range = true;
|
||||
ctx->Extensions.ARB_point_sprite = true;
|
||||
ctx->Extensions.ARB_sampler_objects = true;
|
||||
ctx->Extensions.ARB_shader_objects = true;
|
||||
ctx->Extensions.ARB_shading_language_100 = true;
|
||||
ctx->Extensions.ARB_sync = true;
|
||||
|
@@ -113,7 +113,7 @@ static const struct extension extension_table[] = {
|
||||
{ "GL_ARB_point_sprite", o(ARB_point_sprite), GL, 2003 },
|
||||
{ "GL_ARB_provoking_vertex", o(EXT_provoking_vertex), GL, 2009 },
|
||||
{ "GL_ARB_robustness", o(dummy_true), GL, 2010 },
|
||||
{ "GL_ARB_sampler_objects", o(ARB_sampler_objects), GL, 2009 },
|
||||
{ "GL_ARB_sampler_objects", o(dummy_true), GL, 2009 },
|
||||
{ "GL_ARB_seamless_cube_map", o(ARB_seamless_cube_map), GL, 2009 },
|
||||
{ "GL_ARB_shader_bit_encoding", o(ARB_shader_bit_encoding), GL, 2010 },
|
||||
{ "GL_ARB_shader_objects", o(ARB_shader_objects), GL, 2002 },
|
||||
|
@@ -284,11 +284,6 @@ static const int extra_GLSL_130[] = {
|
||||
EXTRA_END
|
||||
};
|
||||
|
||||
static const int extra_ARB_sampler_objects[] = {
|
||||
EXT(ARB_sampler_objects),
|
||||
EXTRA_END
|
||||
};
|
||||
|
||||
static const int extra_ARB_uniform_buffer_object_and_geometry_shader[] = {
|
||||
EXT(ARB_uniform_buffer_object),
|
||||
EXT(ARB_geometry_shader4),
|
||||
@@ -1304,7 +1299,7 @@ static const struct value_desc values[] = {
|
||||
|
||||
/* GL_ARB_sampler_objects / GL 3.3 */
|
||||
{ GL_SAMPLER_BINDING,
|
||||
LOC_CUSTOM, TYPE_INT, GL_SAMPLER_BINDING, extra_ARB_sampler_objects },
|
||||
LOC_CUSTOM, TYPE_INT, GL_SAMPLER_BINDING, NO_EXTRA },
|
||||
|
||||
/* GL 3.0 */
|
||||
{ GL_NUM_EXTENSIONS, LOC_CUSTOM, TYPE_INT, 0, extra_version_30 },
|
||||
|
@@ -2965,7 +2965,6 @@ struct gl_extensions
|
||||
GLboolean ARB_occlusion_query;
|
||||
GLboolean ARB_occlusion_query2;
|
||||
GLboolean ARB_point_sprite;
|
||||
GLboolean ARB_sampler_objects;
|
||||
GLboolean ARB_seamless_cube_map;
|
||||
GLboolean ARB_shader_bit_encoding;
|
||||
GLboolean ARB_shader_objects;
|
||||
|
@@ -170,12 +170,12 @@ compute_version(struct gl_context *ctx)
|
||||
ctx->Extensions.ARB_explicit_attrib_location &&
|
||||
ctx->Extensions.ARB_instanced_arrays &&
|
||||
ctx->Extensions.ARB_occlusion_query2 &&
|
||||
ctx->Extensions.ARB_sampler_objects &&
|
||||
ctx->Extensions.ARB_shader_bit_encoding &&
|
||||
ctx->Extensions.ARB_texture_rgb10_a2ui &&
|
||||
ctx->Extensions.ARB_timer_query &&
|
||||
ctx->Extensions.ARB_vertex_type_2_10_10_10_rev &&
|
||||
ctx->Extensions.EXT_texture_swizzle);
|
||||
/* ARB_sampler_objects is always enabled in mesa */
|
||||
|
||||
if (ver_3_3) {
|
||||
major = 3;
|
||||
|
@@ -487,7 +487,6 @@ void st_init_extensions(struct st_context *st)
|
||||
ctx->Extensions.ARB_half_float_pixel = GL_TRUE;
|
||||
ctx->Extensions.ARB_half_float_vertex = GL_TRUE;
|
||||
ctx->Extensions.ARB_map_buffer_range = GL_TRUE;
|
||||
ctx->Extensions.ARB_sampler_objects = GL_TRUE;
|
||||
ctx->Extensions.ARB_shader_objects = GL_TRUE;
|
||||
ctx->Extensions.ARB_shading_language_100 = GL_TRUE;
|
||||
ctx->Extensions.ARB_texture_border_clamp = GL_TRUE; /* XXX temp */
|
||||
|
Reference in New Issue
Block a user