glsl: Convert uniform_block in lower_ubo_reference to ir_rvalue.
authorChris Forbes <chrisf@ijw.co.nz>
Sun, 18 May 2014 00:03:54 +0000 (12:03 +1200)
committerChris Forbes <chrisf@ijw.co.nz>
Sat, 26 Jul 2014 04:46:03 +0000 (16:46 +1200)
commitc59802d3a147956d4f33586bb6221cd236987ee2
treea9fdae7c0c72c44387962d18ea7d180cf47fb94f
parent9c90a633786ab8e204c118ec92015eb3ae194349
glsl: Convert uniform_block in lower_ubo_reference to ir_rvalue.

Previously this was a block index with special semantics for -1.
With ARB_gpu_shader5, this need not be a compile-time constant, so
allow any rvalue here and convert the -1 to a NULL pointer.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/lower_ubo_reference.cpp