linker: Split set_uniform_binding into separate functions for blocks and samplers
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 4 Apr 2014 17:45:38 +0000 (10:45 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 11 Apr 2014 19:26:01 +0000 (12:26 -0700)
commit6e2f63b69e37c365094ce9bf7e2f9cd118cea01a
treeb61423619072b4e818e70a774a65e21aa31eef14
parentc8e7568f97b2a71e263b037eb8617efcf36603c8
linker: Split set_uniform_binding into separate functions for blocks and samplers

The two code paths are quite different, and there are some problems in
the handling of uniform blocks.  Future changes will cause these paths
to diverge further.  Ultimately, selecting between the two functions
will happen at the set_uniform_binding call site, and
set_uniform_binding will be deleted.

NOTE: This patch just moves code around.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76323
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: "10.1" <mesa-stable@lists.freedesktop.org>
Cc: github@socker.lepus.uberspace.de
src/glsl/link_uniform_initializers.cpp