diff options
author | Dave Airlie <[email protected]> | 2016-06-03 10:45:07 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2016-06-06 18:02:19 +1000 |
commit | 4c863993780a11cea6f88fa0682796bee5794042 (patch) | |
tree | b4219e4bfc0ed625c4185efee935c1b5b129e9e3 /src/compiler/glsl/glsl_parser_extras.cpp | |
parent | ffcef720b74737b07086db86f34aa2f4b8c58a50 (diff) |
glsl: geom shader max_vertices layout must match.
From GLSL 4.5 spec, "4.4.2.3 Geometry Outputs".
"all geometry shader output vertex count declarations in a
program must declare the same count."
Fixes:
GL45-CTS.geometry_shader.output.conflicted_output_vertices_max
Reviewed-by: Alejandro PiƱeiro <[email protected]>
Cc: "11.2 12.0" <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/compiler/glsl/glsl_parser_extras.cpp')
-rw-r--r-- | src/compiler/glsl/glsl_parser_extras.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/glsl_parser_extras.cpp b/src/compiler/glsl/glsl_parser_extras.cpp index c9654acc6c1..ba658aec23f 100644 --- a/src/compiler/glsl/glsl_parser_extras.cpp +++ b/src/compiler/glsl/glsl_parser_extras.cpp @@ -1692,7 +1692,7 @@ set_shader_inout_layout(struct gl_shader *shader, unsigned qual_max_vertices; if (state->out_qualifier->max_vertices-> process_qualifier_constant(state, "max_vertices", - &qual_max_vertices, true)) { + &qual_max_vertices, true, true)) { if (qual_max_vertices > state->Const.MaxGeometryOutputVertices) { YYLTYPE loc = state->out_qualifier->max_vertices->get_location(); |