mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
glsl: Allow 'in' and 'out' when 'layout' is also available
All of the extensions that add the 'layout' keyword also enable (and
required) the use of 'in' and 'out' with shader globals.
This is related to (piglit) bugzilla #31804.
NOTE: This is a candidate for the 7.9 and 7.10 branches.
(cherry picked from commit 82c4b4f88a)
This commit is contained in:
parent
aff4170849
commit
05ff61dc6b
1 changed files with 5 additions and 2 deletions
|
|
@ -2091,9 +2091,12 @@ ast_declarator_list::hir(exec_list *instructions,
|
|||
*
|
||||
* Local variables can only use the qualifier const."
|
||||
*
|
||||
* This is relaxed in GLSL 1.30.
|
||||
* This is relaxed in GLSL 1.30. It is also relaxed by any extension
|
||||
* that adds the 'layout' keyword.
|
||||
*/
|
||||
if (state->language_version < 130) {
|
||||
if ((state->language_version < 130)
|
||||
&& !state->ARB_explicit_attrib_location_enable
|
||||
&& !state->ARB_fragment_coord_conventions_enable) {
|
||||
if (this->type->qualifier.flags.q.out) {
|
||||
_mesa_glsl_error(& loc, state,
|
||||
"`out' qualifier in declaration of `%s' "
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue