glsl/ir_factory: Add helper method for making an ir_constant
authorChad Versace <chad.versace@linux.intel.com>
Fri, 11 Jan 2013 23:46:24 +0000 (15:46 -0800)
committerChad Versace <chad.versace@linux.intel.com>
Fri, 25 Jan 2013 05:24:10 +0000 (21:24 -0800)
commita6479ef9687b8d996a908127fccad0ec897bb9ee
tree74b9b647eea7fd1978f48bda44951bd7a1a85d44
parent5790174e376e2b3543b902ae14c790c6eed2dd88
glsl/ir_factory: Add helper method for making an ir_constant

Add method ir_factory::constant.  This little method constructs an
ir_constant using the factory's mem_ctx.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
src/glsl/ir_builder.h