glsl/linker: initialize explicit uniform locations
authorTapani Pälli <tapani.palli@intel.com>
Tue, 8 Apr 2014 05:45:36 +0000 (08:45 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Mon, 16 Jun 2014 03:49:59 +0000 (06:49 +0300)
commiteca9d160483fa04caa8c8aeb527d7e42016dfeb2
tree98ecda1da7e55b352c9a45a8453188d2f20e3233
parentdadc3d04f034327b4afeeadf9a860e1b620fab37
glsl/linker: initialize explicit uniform locations

Patch initializes the UniformRemapTable for explicit locations. This
needs to happen before optimizations to make sure all inactive uniforms
get their explicit locations correctly.

v2: fix initialization bug, introduce define for inactive uniforms (Ian)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/ir_uniform.h
src/glsl/linker.cpp