OSDN Git Service

glsl: In later GLSL versions, sequence operator is cannot be a constant expression
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 7 Oct 2015 21:26:29 +0000 (14:26 -0700)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 21 Oct 2015 13:23:21 +0000 (14:23 +0100)
commita9da1ead7b1bd7e251091071cefd3931d3b68d71
treefff7bfc0d3af5cd4228f96dd0420e1f64c912f5c
parentdab0c565d39119820b71482edbbcde06034304d5
glsl: In later GLSL versions, sequence operator is cannot be a constant expression

Fixes:
    ES3-CTS.shaders.negative.constant_sequence

    spec/glsl-es-3.00/compiler/global-initializer/from-sequence.vert
    spec/glsl-es-3.00/compiler/global-initializer/from-sequence.frag

v2: Fix a couple copy-and-paste mistake in the spec quotations.
Suggested by Matt.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Cc: "10.6 11.0" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit 92635a84a7f464b827baa406578420dd6109e1a4)
src/glsl/ast_to_hir.cpp