mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 04:30:10 +01:00
glsl/ast: for geom shaders allow stream flags in input flags.
This fixes: GL45-CTS.shader_subroutine.subroutines_with_separate_shader_objects Since we set the stream flags earlier on all geom shaders, we shouldn't fall over later if we find one. Reviewed-by: Chris Forbes <chrisforbes@google.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
93b3b6af3c
commit
3b8b6be7bb
1 changed files with 4 additions and 1 deletions
|
|
@ -175,9 +175,12 @@ ast_type_qualifier::merge_qualifier(YYLTYPE *loc,
|
|||
/* Geometry shaders can have several layout qualifiers
|
||||
* assigning different stream values.
|
||||
*/
|
||||
if (state->stage == MESA_SHADER_GEOMETRY)
|
||||
if (state->stage == MESA_SHADER_GEOMETRY) {
|
||||
allowed_duplicates_mask.flags.i |=
|
||||
stream_layout_mask.flags.i;
|
||||
input_layout_mask.flags.i |=
|
||||
stream_layout_mask.flags.i;
|
||||
}
|
||||
|
||||
if (is_single_layout_merge && !state->has_enhanced_layouts() &&
|
||||
(this->flags.i & q.flags.i & ~allowed_duplicates_mask.flags.i) != 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue