summaryrefslogtreecommitdiffstats
path: root/src/glsl/link_functions.cpp
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2013-01-11 12:56:03 -0800
committerPaul Berry <[email protected]>2013-01-24 16:30:43 -0800
commit1ecd23dea944dbf4cdd2c6bfa8ce0e0e09de8239 (patch)
tree7748f7f6118ee549a097fe9b2c8f950181ec32f1 /src/glsl/link_functions.cpp
parent88e4bfde2639568fabde6f5342e305e5689c6a27 (diff)
glsl: Update lower_packed_varyings to handle varying structs.
This patch adds code to lower_packed_varyings to handle varyings of type struct. Varying structs are currently packed in the most naive possible way (in declaration order, with no gaps), so there is a potential loss of runtime efficiency. In a later patch it would be nice to replace this with a "flattening" approach (wherein a varying struct is flattened to individual varyings corresponding to each of its structure elements), so that the linker can align each structure element independently. However, that would require a significantly more complex implementation. Reviewed-by: Jordan Justen <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/glsl/link_functions.cpp')
0 files changed, 0 insertions, 0 deletions