Re: [Mesa-dev] [PATCH 02/14] glsl: Add type predicate to check whether a type contains any opaque types.

2013-10-25 Thread Ian Romanick
Reviewed-by: Ian Romanick ian.d.roman...@intel.com On 10/01/2013 07:15 PM, Francisco Jerez wrote: And use it to forbid comparisons of opaque operands. According to the GL 4.2 specification: Except for array indexing, structure member selection, and parentheses, opaque variables are not

[Mesa-dev] [PATCH 02/14] glsl: Add type predicate to check whether a type contains any opaque types.

2013-10-01 Thread Francisco Jerez
And use it to forbid comparisons of opaque operands. According to the GL 4.2 specification: Except for array indexing, structure member selection, and parentheses, opaque variables are not allowed to be operands in expressions. --- src/glsl/ast_to_hir.cpp | 4 src/glsl/glsl_types.cpp |