glsl: dont allow gl_PerVertex to be redeclared as an array of arrays
authorTimothy Arceri <t_arceri@yahoo.com.au>
Mon, 23 Jun 2014 21:43:05 +0000 (07:43 +1000)
committerTimothy Arceri <t_arceri@yahoo.com.au>
Thu, 15 Oct 2015 09:36:01 +0000 (20:36 +1100)
commitd337da81f28d6a5a65d0a09f9b1ddf905dc7c3aa
treec88782e43ef3cd3f43684f992b15d01faf175dee
parentdea0af8f826ca9ad638a158fdaacb2a4436f11d7
glsl: dont allow gl_PerVertex to be redeclared as an array of arrays

V3: move patch after fixes to ast for AoA and add const to helper
as suggested by Ian

V2: move single dimensional array detection into a helper

Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/ast.h
src/glsl/ast_to_hir.cpp