mesa: Strip arrayness from interface block names in some IO validation
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 10 Jun 2016 15:01:30 +0000 (08:01 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 5 Jul 2016 23:58:27 +0000 (16:58 -0700)
commit73a6a4ce4975016d4f86d644b31d30bb6d3a38f8
treead84147dd64793e33a425efa5f9b8417b40be56d
parent32651c67d14b9aa408eaae9c9a36bc04c399ee39
mesa: Strip arrayness from interface block names in some IO validation

Outputs from the vertex shader need to be able to match
per-vertex-arrayed inputs of later stages.  Acomplish this by stripping
one level of arrayness from the names and types of outputs going to a
per-vertex-arrayed stage.

v2: Add missing checks for TESS_EVAL->GEOMETRY.  Noticed by Timothy
Arceri.

v3: Use a slightly simpler stage check suggested by Ilia.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96358
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
Cc: Gregory Hainaut <gregory.hainaut@gmail.com>
Cc: Ilia Mirkin <imirkin@alum.mit.edu>
src/mesa/main/shader_query.cpp