summaryrefslogtreecommitdiffstats
path: root/src/glsl/glsl_parser_extras.h
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2015-02-05 11:38:44 +0200
committerIlia Mirkin <[email protected]>2015-02-19 00:28:33 -0500
commit3af8db94cd315314ae8db096ba67f6655a005c23 (patch)
treea3e68c5278ed095fbc99edbbc44d0ea19468d19c /src/glsl/glsl_parser_extras.h
parent277f4d75a74b7b3e3af295e102be8bb5343d85dc (diff)
glsl: Add double builtin type generation
Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/glsl/glsl_parser_extras.h')
-rw-r--r--src/glsl/glsl_parser_extras.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/glsl/glsl_parser_extras.h b/src/glsl/glsl_parser_extras.h
index dafee4e2712..ea53270eddc 100644
--- a/src/glsl/glsl_parser_extras.h
+++ b/src/glsl/glsl_parser_extras.h
@@ -205,6 +205,11 @@ struct _mesa_glsl_parse_state {
|| EXT_separate_shader_objects_enable;
}
+ bool has_double() const
+ {
+ return ARB_gpu_shader_fp64_enable || is_version(400, 0);
+ }
+
void process_version_directive(YYLTYPE *locp, int version,
const char *ident);