diff options
author | Micah Fedke <micah.fedke@collabora.co.uk> | 2014-12-31 14:16:52 -0600 |
---|---|---|
committer | Chris Forbes <chrisf@ijw.co.nz> | 2015-01-19 16:33:21 +1300 |
commit | d36fa60191359af9ac1e1889bcdc95c3b9d65332 (patch) | |
tree | 62286cbf0bd9caaa7ed733bd0e4373f66fc016fc /src/glsl/glcpp | |
parent | 461103ef64858e9d81073fad1bd8222b70b2754b (diff) | |
download | external_mesa3d-d36fa60191359af9ac1e1889bcdc95c3b9d65332.zip external_mesa3d-d36fa60191359af9ac1e1889bcdc95c3b9d65332.tar.gz external_mesa3d-d36fa60191359af9ac1e1889bcdc95c3b9d65332.tar.bz2 |
mesa: Add ARB_shader_precision infrastructure
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Diffstat (limited to 'src/glsl/glcpp')
-rw-r--r-- | src/glsl/glcpp/glcpp-parse.y | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/glcpp/glcpp-parse.y b/src/glsl/glcpp/glcpp-parse.y index 9e705ef..e5bebe5 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); } } |