aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl/glcpp
diff options
context:
space:
mode:
authorMicah Fedke <[email protected]>2014-12-31 14:16:52 -0600
committerChris Forbes <[email protected]>2015-01-19 16:33:21 +1300
commitd36fa60191359af9ac1e1889bcdc95c3b9d65332 (patch)
tree62286cbf0bd9caaa7ed733bd0e4373f66fc016fc /src/glsl/glcpp
parent461103ef64858e9d81073fad1bd8222b70b2754b (diff)
mesa: Add ARB_shader_precision infrastructure
Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Chris Forbes <[email protected]>
Diffstat (limited to 'src/glsl/glcpp')
-rw-r--r--src/glsl/glcpp/glcpp-parse.y3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/glcpp/glcpp-parse.y b/src/glsl/glcpp/glcpp-parse.y
index 9e705ef0741..e5bebe58e3a 100644
--- a/src/glsl/glcpp/glcpp-parse.y
+++ b/src/glsl/glcpp/glcpp-parse.y
@@ -2474,6 +2474,9 @@ _glcpp_parser_handle_version_declaration(glcpp_parser_t *parser, intmax_t versio
if (extensions->ARB_derivative_control)
add_builtin_define(parser, "GL_ARB_derivative_control", 1);
+
+ if (extensions->ARB_shader_precision)
+ add_builtin_define(parser, "GL_ARB_shader_precision", 1);
}
}