glsl: shader outputs cannot have initializers
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 7 Oct 2015 07:21:36 +0000 (09:21 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Mon, 12 Oct 2015 06:31:08 +0000 (08:31 +0200)
commitf09c229cc6db838ae595fb57f5e6386a035bdf42
tree78f5762aed22c101984f03ae4e96e01d150c7fbd
parent8281a7c5333d9b78aabf9ce3e9cc7077ccca9413
glsl: shader outputs cannot have initializers

GLSL Spec 4.20.8, 4.3 Storage Qualifiers:

"Initializers in global declarations may only be used in declarations of
 global variables with no storage qualifier, with a const qualifier or
 with a uniform qualifier."

We do this for input variables, but not for output variables. AMD and NVIDIA
proprietary drivers don't allow this either.

Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/glsl/ast_to_hir.cpp