diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2016-08-17 10:20:34 +0100 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2016-08-26 15:03:15 -0700 |
commit | dc4f53b68308bbd79932470cf4613037f7e95fb7 (patch) | |
tree | ab86f908b5d9e32cd416c951a35a3d0ea811b984 /src/compiler/glsl/glsl_parser_extras.h | |
parent | 87fa462ffd6754144f89163a2692eff005beef9c (diff) | |
download | external_mesa3d-dc4f53b68308bbd79932470cf4613037f7e95fb7.zip external_mesa3d-dc4f53b68308bbd79932470cf4613037f7e95fb7.tar.gz external_mesa3d-dc4f53b68308bbd79932470cf4613037f7e95fb7.tar.bz2 |
mesa: Add support for OES_texture_cube_map_array
This has a separate enable flag because this extension also requires
OES_geometry_shader. It is possible that some drivers may support
OpenGL ES 3.1 and ARB_texture_cube_map but not support
OES_geometry_shader.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/compiler/glsl/glsl_parser_extras.h')
-rw-r--r-- | src/compiler/glsl/glsl_parser_extras.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/compiler/glsl/glsl_parser_extras.h b/src/compiler/glsl/glsl_parser_extras.h index 82ce6a7..63a8a67 100644 --- a/src/compiler/glsl/glsl_parser_extras.h +++ b/src/compiler/glsl/glsl_parser_extras.h @@ -320,7 +320,8 @@ struct _mesa_glsl_parse_state { bool has_texture_cube_map_array() const { return ARB_texture_cube_map_array_enable || - is_version(400, 0); + OES_texture_cube_map_array_enable || + is_version(400, 320); } void process_version_directive(YYLTYPE *locp, int version, @@ -688,6 +689,8 @@ struct _mesa_glsl_parse_state { bool OES_texture_3D_warn; bool OES_texture_buffer_enable; bool OES_texture_buffer_warn; + bool OES_texture_cube_map_array_enable; + bool OES_texture_cube_map_array_warn; bool OES_texture_storage_multisample_2d_array_enable; bool OES_texture_storage_multisample_2d_array_warn; |