glsl: Implicitly enable OES_shader_io_blocks if geom/tess are enabled.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
Kenneth Graunke 2016-05-21 11:46:22 -07:00
parent 0eaa84e8af
commit 522b5d4566
1 changed files with 11 additions and 0 deletions

View File

@ -267,8 +267,19 @@ struct _mesa_glsl_parse_state {
bool has_shader_io_blocks() const
{
/* The OES_geometry_shader_specification says:
*
* "If the OES_geometry_shader extension is enabled, the
* OES_shader_io_blocks extension is also implicitly enabled."
*
* The OES_tessellation_shader extension has similar wording.
*/
return OES_shader_io_blocks_enable ||
EXT_shader_io_blocks_enable ||
OES_geometry_shader_enable ||
OES_tessellation_shader_enable ||
EXT_tessellation_shader_enable ||
is_version(150, 320);
}