diff options
author | Kenneth Graunke <[email protected]> | 2016-05-20 15:17:37 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-08-07 23:47:55 -0700 |
commit | d0642c52fce91936443ea64ebbc2719813b95aae (patch) | |
tree | 7e0a882df6183c8fa4c11b52cd696d71b798f3ab /src/compiler/glsl/glsl_parser_extras.h | |
parent | 3fb4a9b3b3ef034a3317529197041c25831df286 (diff) |
glsl: Add a has_tessellation_shader() helper.
Similar to has_geometry_shader(), has_compute_shader(), and so on.
This will make it easier to add more conditions here later.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/compiler/glsl/glsl_parser_extras.h')
-rw-r--r-- | src/compiler/glsl/glsl_parser_extras.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compiler/glsl/glsl_parser_extras.h b/src/compiler/glsl/glsl_parser_extras.h index cca7fa8e0ee..f9c1ffca842 100644 --- a/src/compiler/glsl/glsl_parser_extras.h +++ b/src/compiler/glsl/glsl_parser_extras.h @@ -277,6 +277,11 @@ struct _mesa_glsl_parse_state { return OES_geometry_shader_enable || is_version(150, 320); } + bool has_tessellation_shader() const + { + return ARB_tessellation_shader_enable || is_version(400, 0); + } + bool has_clip_distance() const { return EXT_clip_cull_distance_enable || is_version(130, 0); |