glsl: always initialize image_* fields, copy them on interface init
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 19 Jan 2016 06:43:40 +0000 (01:43 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 30 Jan 2016 02:04:56 +0000 (21:04 -0500)
commit2b089c7ffe2c46a5d5d01ec315fb3e5a07695d44
tree18b45365b45bc9ebaee0e4e16439d075ed3cd890
parent2ccc42fd2c63502ffb1273a5e4ff7c8d77dc6062
glsl: always initialize image_* fields, copy them on interface init

Interfaces can have image properties set in case they are buffer
interfaces. Make sure not to lose this information.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/compiler/glsl/builtin_variables.cpp
src/compiler/glsl_types.cpp
src/compiler/glsl_types.h