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)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 21 Oct 2015 13:23:21 +0000 (14:23 +0100)
commitdab0c565d39119820b71482edbbcde06034304d5
treebe930521f2d24047c14d1d9bad90ea232e75510c
parent96931dbf14707ad786fee793342eb7c33d3c427e
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>
(cherry picked from commit 05e4601c6b9ce456cc4a4c395677a22125d889d2)
src/glsl/ast.h
src/glsl/ast_function.cpp
src/glsl/ast_to_hir.cpp