mesa: don't always enable OES_standard_derivatives
For Intel, expose it only if gen >= 4. For Gallium, expose it only if PIPE_CAP_SM3 is advertised. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
@@ -357,8 +357,6 @@ name_to_offset(const char* name)
|
||||
* XXX: Should these defaults also apply to GLES?
|
||||
*/
|
||||
static const size_t default_extensions[] = {
|
||||
o(OES_standard_derivatives),
|
||||
|
||||
/* Vendor Extensions */
|
||||
o(APPLE_packed_pixels),
|
||||
o(IBM_multimode_draw_arrays),
|
||||
@@ -464,6 +462,7 @@ _mesa_enable_sw_extensions(struct gl_context *ctx)
|
||||
/*ctx->Extensions.NV_texgen_reflection = GL_TRUE;*/
|
||||
ctx->Extensions.NV_fragment_program_option = GL_TRUE;
|
||||
ctx->Extensions.EXT_gpu_program_parameters = GL_TRUE;
|
||||
ctx->Extensions.OES_standard_derivatives = GL_TRUE;
|
||||
_mesa_enable_extension(ctx, "GL_3DFX_texture_compression_FXT1");
|
||||
if (ctx->Mesa_DXTn) {
|
||||
ctx->Extensions.ANGLE_texture_compression_dxt = GL_TRUE;
|
||||
|
Reference in New Issue
Block a user