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 <kenneth@whitecape.org>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
This commit is contained in:
Kenneth Graunke
2016-05-20 15:17:37 -07:00
parent 3fb4a9b3b3
commit d0642c52fc
3 changed files with 12 additions and 18 deletions

View File

@@ -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);