diff options
author | Jordan Justen <[email protected]> | 2013-03-27 13:58:04 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2013-05-13 13:57:52 -0700 |
commit | 220f70667dacc37f0e5cb871f6054214519d191f (patch) | |
tree | 751aa2ded7889556a8e223ec8d486ce7f470e83a /src/glsl/glcpp | |
parent | c9e981b8fb815cc14094ca09719819017e43024d (diff) |
glsl: add AMD_vertex_shader_layer support
This GLSL extension requires that AMD_vertex_shader_layer be
enabled by the driver.
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/glcpp')
-rw-r--r-- | src/glsl/glcpp/glcpp-parse.y | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/glcpp/glcpp-parse.y b/src/glsl/glcpp/glcpp-parse.y index f0d2ab00799..81ba04bcc0e 100644 --- a/src/glsl/glcpp/glcpp-parse.y +++ b/src/glsl/glcpp/glcpp-parse.y @@ -1239,6 +1239,9 @@ glcpp_parser_create (const struct gl_extensions *extensions, int api) if (extensions->ARB_gpu_shader5) add_builtin_define(parser, "GL_ARB_gpu_shader5", 1); + + if (extensions->AMD_vertex_shader_layer) + add_builtin_define(parser, "GL_AMD_vertex_shader_layer", 1); } } |