glsl: Cross validate variable's invariance by explicit invariance only
authorDanylo Piliaiev <danylo.piliaiev@globallogic.com>
Tue, 4 Sep 2018 08:42:04 +0000 (11:42 +0300)
committerJordan Justen <jordan.l.justen@intel.com>
Fri, 22 Mar 2019 06:28:08 +0000 (23:28 -0700)
'invariant' qualifier is propagated on variables which are used
to calculate other invariant variables, however when we are matching
variable's declarations we should take into account only explicitly
declared invariance because invariance propagation is an implementation
specific detail.

Thus new flag is added to ir_variable_data which indicates 'invariant'
qualifier being explicitly set in the shader.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100316
Fixes: 89b60492 ('glsl: Add a pass to propagate the "invariant" and
  "precise" qualifiers')

Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>

No differences found