glsl/ast: Generalize some sampler variable restrictions to all opaque types.
authorFrancisco Jerez <currojerez@riseup.net>
Tue, 26 Nov 2013 03:38:37 +0000 (19:38 -0800)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 12 Feb 2014 17:44:05 +0000 (18:44 +0100)
commit7af167d2becc3ff7274350d8d29424ebf89aa6a9
tree2d347b4a31a3f082fa8cb84c31337b0e142f5e4a
parent2158749e522cb62d961d64d7b887cd730f915faa
glsl/ast: Generalize some sampler variable restrictions to all opaque types.

No opaque types may be statically initialized in the shader, all
opaque variables must be declared uniform or be part of an "in"
function parameter declaration, no opaque types may be used as the
return type of a function.

v2: Add explicit check for opaque types in interface blocks.  Check
    for opaque types in ir_dereference::is_lvalue().

Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/glsl/ast_to_hir.cpp
src/glsl/ir.cpp