diff options
author | Kenneth Graunke <[email protected]> | 2016-07-08 12:00:30 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-08-08 09:59:03 -0700 |
commit | 58709d36d73419c21b899d4b9d08a4a82a2cc28b (patch) | |
tree | b9c24748c0dc598491c56c208c830ee2370d7970 /src/compiler/glsl/glsl_parser_extras.h | |
parent | 722fd10456f8e92d61c492b662a24215eb4cd166 (diff) |
glsl: Add extension plumbing for OES/EXT_tessellation_shader.
This adds the #extension directive support, built-in #defines,
lexer keyword support, and updates has_tessellation_shader().
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/compiler/glsl/glsl_parser_extras.h')
-rw-r--r-- | src/compiler/glsl/glsl_parser_extras.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/compiler/glsl/glsl_parser_extras.h b/src/compiler/glsl/glsl_parser_extras.h index f9c1ffca842..991cfc6ebc9 100644 --- a/src/compiler/glsl/glsl_parser_extras.h +++ b/src/compiler/glsl/glsl_parser_extras.h @@ -279,7 +279,10 @@ struct _mesa_glsl_parse_state { bool has_tessellation_shader() const { - return ARB_tessellation_shader_enable || is_version(400, 0); + return ARB_tessellation_shader_enable || + OES_tessellation_shader_enable || + EXT_tessellation_shader_enable || + is_version(400, 320); } bool has_clip_distance() const @@ -649,6 +652,10 @@ struct _mesa_glsl_parse_state { bool OES_shader_multisample_interpolation_warn; bool OES_standard_derivatives_enable; bool OES_standard_derivatives_warn; + bool OES_tessellation_point_size_enable; + bool OES_tessellation_point_size_warn; + bool OES_tessellation_shader_enable; + bool OES_tessellation_shader_warn; bool OES_texture_3D_enable; bool OES_texture_3D_warn; bool OES_texture_buffer_enable; @@ -684,6 +691,10 @@ struct _mesa_glsl_parse_state { bool EXT_shader_io_blocks_warn; bool EXT_shader_samples_identical_enable; bool EXT_shader_samples_identical_warn; + bool EXT_tessellation_point_size_enable; + bool EXT_tessellation_point_size_warn; + bool EXT_tessellation_shader_enable; + bool EXT_tessellation_shader_warn; bool EXT_texture_array_enable; bool EXT_texture_array_warn; bool EXT_texture_buffer_enable; |