glsl: Add lowering pass for shared variable references
authorJordan Justen <jordan.l.justen@intel.com>
Tue, 28 Jul 2015 21:45:56 +0000 (14:45 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Thu, 10 Dec 2015 07:50:38 +0000 (23:50 -0800)
commit1078d712d7ef8e07b772231e768898a04a066e06
tree3ab8915481d9fcc7e88497f0fa1ad804c6dfc413
parentf22ab2e8b3dbd7dfdada0d353da1c6ef898f1494
glsl: Add lowering pass for shared variable references

In this lowering pass, shared variables are decomposed into intrinsic
calls.

v2:
 * Send mem_ctx as a parameter (Iago)

v3:
 * Shared variables don't have an associated interface block (Iago)
 * Always use 430 packing (Iago)
 * Comment / whitespace cleanup (Iago)

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/Makefile.sources
src/glsl/ir_optimization.h
src/glsl/linker.cpp
src/glsl/lower_shared_reference.cpp [new file with mode: 0644]
src/mesa/main/mtypes.h