glsl: Refactor generate_ARB_draw_buffers_variables to use add_builtin_constant
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 31 Oct 2011 21:43:27 +0000 (14:43 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 3 Nov 2011 20:36:00 +0000 (13:36 -0700)
commitd3b39194dc60fa933f5e8df30bcd8d1cb64dbc4c
tree70b7148d9b0fea72e19787cbfb9897f22dd4ce19
parent22af08b410f47227ea27b06cce097ccbe0130540
glsl: Refactor generate_ARB_draw_buffers_variables to use add_builtin_constant

v2: Remove int cast based on feedback from Ken.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Paul Berry <stereotype441@gmail.com>
src/glsl/ir_variable.cpp