summaryrefslogtreecommitdiffstats
path: root/src/glsl/glcpp
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2014-06-11 13:36:12 +1000
committerIlia Mirkin <imirkin@alum.mit.edu>2015-02-19 00:28:33 -0500
commit277f4d75a74b7b3e3af295e102be8bb5343d85dc (patch)
tree2d44b8aa8eedaedb542228a6247ebc4ac0404841 /src/glsl/glcpp
parent5cc486b4e3a169fd2d82c463ca793e48343daef3 (diff)
downloadexternal_mesa3d-277f4d75a74b7b3e3af295e102be8bb5343d85dc.zip
external_mesa3d-277f4d75a74b7b3e3af295e102be8bb5343d85dc.tar.gz
external_mesa3d-277f4d75a74b7b3e3af295e102be8bb5343d85dc.tar.bz2
glsl: add ARB_gpu_shader_fp64 to the glsl extensions. (v2)
v2: add define bit (Tapani Pälli) Patch makes following Piglit tests pass: arb_gpu_shader_fp64/preprocessor/define.vert arb_gpu_shader_fp64/preprocessor/define.frag Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
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 e5bebe5..c2f5223 100644
--- a/src/glsl/glcpp/glcpp-parse.y
+++ b/src/glsl/glcpp/glcpp-parse.y
@@ -2445,6 +2445,9 @@ _glcpp_parser_handle_version_declaration(glcpp_parser_t *parser, intmax_t versio
if (extensions->ARB_gpu_shader5)
add_builtin_define(parser, "GL_ARB_gpu_shader5", 1);
+ if (extensions->ARB_gpu_shader_fp64)
+ add_builtin_define(parser, "GL_ARB_gpu_shader_fp64", 1);
+
if (extensions->AMD_vertex_shader_layer)
add_builtin_define(parser, "GL_AMD_vertex_shader_layer", 1);