glsl: Disable several optimizations on shared variables
authorJordan Justen <jordan.l.justen@intel.com>
Sat, 10 Oct 2015 18:30:33 +0000 (11:30 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Thu, 10 Dec 2015 07:50:38 +0000 (23:50 -0800)
commitfc21a7c26ea7b49031e4f33dcac5e2a297d2a6f3
tree8621a945cf4b417e337bf0bc093dfb994c1b8055
parentf821a3ec4f8dda55722f326f26855c2b24ca186c
glsl: Disable several optimizations on shared variables

Shared variables can be accessed by other threads within the same
local workgroup. This prevents us from performing certain
optimizations with shared variables.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/glsl/opt_constant_propagation.cpp
src/glsl/opt_constant_variable.cpp
src/glsl/opt_copy_propagation.cpp