OSDN Git Service

glsl: Add method to determine whether an expression contains the sequence operator
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 7 Oct 2015 20:03:53 +0000 (13:03 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 12 Oct 2015 17:15:13 +0000 (10:15 -0700)
commit05e4601c6b9ce456cc4a4c395677a22125d889d2
treedc08265aebe77aea22198a6a18f70a7af6c42680
parentbb329f2ff6e8bf8910a467b09f69a4d843689617
glsl: Add method to determine whether an expression contains the sequence operator

This will be used in the next patch to enforce some language sematics.

v2: Fix inverted logic in
ast_function_expression::has_sequence_subexpression.  The method
originally had a different name and a different meaning.  I fixed the
logic in ast_to_hir.cpp, but I only changed the names in
ast_function.cpp.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Marta Lofstedt <marta.lofstedt@intel.com> [v1]
Reviewed-by: Matt Turner <mattst88@gmail.com>
Cc: "10.6 11.0" <mesa-stable@lists.freedesktop.org>
src/glsl/ast.h
src/glsl/ast_function.cpp
src/glsl/ast_to_hir.cpp