glsl: Add a has_tessellation_shader() helper.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 20 May 2016 22:17:37 +0000 (15:17 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 8 Aug 2016 06:47:55 +0000 (23:47 -0700)
commitd0642c52fce91936443ea64ebbc2719813b95aae
tree7e0a882df6183c8fa4c11b52cd696d71b798f3ab
parent3fb4a9b3b3ef034a3317529197041c25831df286
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>
src/compiler/glsl/builtin_variables.cpp
src/compiler/glsl/glsl_parser.yy
src/compiler/glsl/glsl_parser_extras.h