mesa: don't always enable OES_standard_derivatives
authorMarek Olšák <maraeo@gmail.com>
Sun, 28 Oct 2012 14:01:52 +0000 (15:01 +0100)
committerMarek Olšák <maraeo@gmail.com>
Wed, 31 Oct 2012 01:04:54 +0000 (02:04 +0100)
commit55bf57dbb4e3ee1f0131fe7fc19211148b9e1e2f
tree1155b3709fc5130cd88ee926d06a56972e5e1df5
parentb6f5c37ac3e8ec3aae39289f94f05cb71a587066
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>
src/glsl/standalone_scaffolding.cpp
src/mesa/drivers/dri/intel/intel_extensions.c
src/mesa/main/extensions.c
src/mesa/state_tracker/st_extensions.c