glsl: Add std430 support to program_resource_visitor's member functions
authorSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Fri, 4 Sep 2015 15:53:48 +0000 (17:53 +0200)
committerSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Fri, 25 Sep 2015 06:39:22 +0000 (08:39 +0200)
commit1be180b941ac9e0652a6b2d19713ddccd8a5151f
tree90f1dded872d145b2830866321230f174b772e7e
parent8f0167c65b2df73cf2ef094358ba162fe0028d14
glsl: Add std430 support to program_resource_visitor's member functions

They are used to calculate the offset, array stride of uniform/shader
storage buffer variables. Take into account this info to get the right
value for std430.

v2:
- Fix commit log line length and indention. (Jordan)

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/glsl/link_uniform_blocks.cpp
src/glsl/link_uniforms.cpp
src/glsl/linker.h