mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
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:
parent
0eaa84e8af
commit
522b5d4566
1 changed files with 11 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue