st_glsl_to_tgsi: only skip over slots of an input array that are present
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 25 Jul 2016 16:05:46 +0000 (18:05 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 28 Jul 2016 09:46:02 +0000 (10:46 +0100)
commit185b0c15abfba8b011f5b009e9f1890305e40ff6
treeb74e8aad5c2bd6d21c15afc6519235303b559cc2
parent041b330a3204d894fe95b5bae6a740936a7ebc0f
st_glsl_to_tgsi: only skip over slots of an input array that are present

When an application declares varying arrays but does not actually do any
indirect indexing, some array indices may end up unused in the consuming
shader, so the number of input slots that correspond to the array ends
up less than the array_size.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp