diff options
author | Marek Olšák <[email protected]> | 2012-10-28 15:01:52 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-10-31 02:04:54 +0100 |
commit | 55bf57dbb4e3ee1f0131fe7fc19211148b9e1e2f (patch) | |
tree | 1155b3709fc5130cd88ee926d06a56972e5e1df5 /src/mesa/drivers | |
parent | b6f5c37ac3e8ec3aae39289f94f05cb71a587066 (diff) |
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 <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rwxr-xr-x | src/mesa/drivers/dri/intel/intel_extensions.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_extensions.c b/src/mesa/drivers/dri/intel/intel_extensions.c index ec99c3e571a..702e40f2671 100755 --- a/src/mesa/drivers/dri/intel/intel_extensions.c +++ b/src/mesa/drivers/dri/intel/intel_extensions.c @@ -158,6 +158,7 @@ intelInitExtensions(struct gl_context *ctx) ctx->Extensions.ATI_envmap_bumpmap = true; ctx->Extensions.MESA_texture_array = true; ctx->Extensions.NV_conditional_render = true; + ctx->Extensions.OES_standard_derivatives = true; } if (intel->gen >= 3) { |