glsl: Lower UBO and SSBO access in glsl linker
authorKristian Høgsberg Kristensen <krh@bitplanet.net>
Wed, 4 Nov 2015 22:55:32 +0000 (14:55 -0800)
committerKristian Høgsberg Kristensen <krh@bitplanet.net>
Tue, 10 Nov 2015 20:02:46 +0000 (12:02 -0800)
commit60dd5287ff8dbbbe0dbe76bdff6d13c7a5ea9ef0
tree619e689c9bd104ac3ab806d7e92ca39d4dd61c6d
parentf0e95c2500fdb720d4102976f17361c294e1f3a3
glsl: Lower UBO and SSBO access in glsl linker

All GLSL IR consumers run this lowering pass so we can move it to the
linker. This moves the pass up quite a bit, but that's the point: it
needs to run before we throw away information about per-component vector
access.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Signed-off-by: Kristian Høgsberg Kristensen <krh@bitplanet.net>
src/glsl/linker.cpp
src/mesa/drivers/dri/i965/brw_link.cpp
src/mesa/drivers/dri/i965/brw_shader.cpp
src/mesa/main/mtypes.h
src/mesa/state_tracker/st_extensions.c
src/mesa/state_tracker/st_glsl_to_tgsi.cpp