glsl: Enable dFdx, dFdy, and fwidth by default in GLSL ES 3.00.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 7 Nov 2013 22:39:23 +0000 (14:39 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 7 Nov 2013 23:52:02 +0000 (15:52 -0800)
commit1bd623316913fdefa3749809420db27291ef9f0e
treeef2acc232a68851ddcf3000e90b5cc390b1cd332
parentc9ac891fa4908ffd4be08dfe64ff9541806f0c3d
glsl: Enable dFdx, dFdy, and fwidth by default in GLSL ES 3.00.

Previously, we only exposed them in desktop GL or with:

   #extension GL_OES_standard_derivatives : enable

GLSL ES 3.00 includes these without an extension, so we need to expose
them by default.

Note that the above #extension line results in an error or desktop GL,
so we don't need to worry about this.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/glsl/builtin_functions.cpp