diff options
author | Ian Romanick <[email protected]> | 2016-08-17 10:13:24 +0100 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2016-08-26 15:03:15 -0700 |
commit | ef5bad09c4623892a358046b7ece4dcb273ad700 (patch) | |
tree | fc44ed29149e64972946df09771ff42c19c12b35 /src/compiler/glsl/glsl_parser_extras.h | |
parent | c879dbc4e4184511cb3d831b66380c087216d850 (diff) |
glsl: Add and use has_texture_cube_map_array helper
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/compiler/glsl/glsl_parser_extras.h')
-rw-r--r-- | src/compiler/glsl/glsl_parser_extras.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/glsl/glsl_parser_extras.h b/src/compiler/glsl/glsl_parser_extras.h index 7092281a2b4..82ce6a78164 100644 --- a/src/compiler/glsl/glsl_parser_extras.h +++ b/src/compiler/glsl/glsl_parser_extras.h @@ -317,6 +317,12 @@ struct _mesa_glsl_parse_state { MESA_shader_framebuffer_fetch_non_coherent_enable; } + bool has_texture_cube_map_array() const + { + return ARB_texture_cube_map_array_enable || + is_version(400, 0); + } + void process_version_directive(YYLTYPE *locp, int version, const char *ident); |