st/glsl_to_tgsi: fix getting the image type for array of structs (again)
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 22 Aug 2017 10:34:48 +0000 (12:34 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 22 Aug 2017 11:58:51 +0000 (13:58 +0200)
commite2f3cfead92dacbfd24c597034301c713775a138
tree792ad33cfa4b40f936d1dd5552247c75e9bb5027
parentcdaaf6656653822fc04dbf99804888c5cd126e97
st/glsl_to_tgsi: fix getting the image type for array of structs (again)

We want the type of the field, not of the struct.

This fixes a regression in the following piglit test:
arb_bindless_texture/compiler/images/arrays-of-struct.frag

Fixes: 49d9286a3f ("glsl: stop copying struct and interface member names")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp