linker: Refactor intra-stage block compatabililty testing
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 13 Dec 2012 10:25:34 +0000 (02:25 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 25 Jan 2013 14:07:33 +0000 (09:07 -0500)
commitb226a058dbb59a24254a149be182a08bcb10bee3
tree16e4d361fbeffdbaac116fdf92a916241947d188
parent9a971ab695d8f3c58a5fb0f359443b6b053f0b97
linker: Refactor intra-stage block compatabililty testing

Also slightly change the compatibility test.  Instead of comparing the
offsets of the block variables, compare the packing mode of the blocks.
Ideally we don't want to assign the offsets until a later stage of
linking.

This is put in a new file called link_uniform_blocks.cpp.  Some new
functions related to uniform blocks are going to live in that file as
well.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Carl Worth <cworth@cworth.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/Makefile.sources
src/glsl/link_uniform_blocks.cpp [new file with mode: 0644]
src/glsl/link_uniforms.cpp
src/glsl/linker.h