glsl: remove unneeded check for incompatible primitive types in GS
authorAndres Gomez <agomez@igalia.com>
Fri, 11 Nov 2016 19:03:02 +0000 (21:03 +0200)
committerAndres Gomez <agomez@igalia.com>
Fri, 25 Nov 2016 11:18:30 +0000 (13:18 +0200)
commita5d6ae2f51718b877a15a3a687586dce97b3b1ba
tree771a64273e1d773a6514ffd7e68130039a382da1
parent0ecfff0d08a7ca48f1b284c11c48f158c723e0c2
glsl: remove unneeded check for incompatible primitive types in GS

The validation of the default in layout qualifier already assures that
we won't have 2 ast_gs_input_layout objects with different primitive
type values. In fact, the validation already assures that we won't
have 2 ast_gs_input_layout objects in the AST tree at all.

The check for an error in the shader has been replaced by an assert.

Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Signed-off-by: Andres Gomez <agomez@igalia.com>
src/compiler/glsl/ast_to_hir.cpp