glsl: geom shader max_vertices layout must match.
authorDave Airlie <airlied@redhat.com>
Fri, 3 Jun 2016 00:45:07 +0000 (10:45 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 6 Jun 2016 08:02:19 +0000 (18:02 +1000)
commit4c863993780a11cea6f88fa0682796bee5794042
treeb4219e4bfc0ed625c4185efee935c1b5b129e9e3
parentffcef720b74737b07086db86f34aa2f4b8c58a50
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 <apinheiro@igalia.com>
Cc: "11.2 12.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/compiler/glsl/ast.h
src/compiler/glsl/ast_type.cpp
src/compiler/glsl/glsl_parser_extras.cpp