OSDN Git Service

glsl: geom shader max_vertices layout must match.
authorDave Airlie <airlied@redhat.com>
Fri, 3 Jun 2016 00:45:07 +0000 (10:45 +1000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 14 Jun 2016 14:48:38 +0000 (15:48 +0100)
commitfc0a469e4cd8b3775b69ec557602013301b7ae59
tree9a6d16ecbfbd7961df5887503211bbdf0f34fa5f
parent0ce3dc9a303c31566b8352d6ab6abe3cbd444502
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>
(cherry picked from commit 4c863993780a11cea6f88fa0682796bee5794042)
src/compiler/glsl/ast.h
src/compiler/glsl/ast_type.cpp
src/compiler/glsl/glsl_parser_extras.cpp