From: Eric Anholt Date: Tue, 27 Jul 2010 17:39:40 +0000 (-0700) Subject: ir_to_mesa: Set the swizzle on constant struct src regs. X-Git-Tag: 062012170305~10660^2~277 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9a770ee49f8cb82653bb5c1976f7751d9a6b801e;p=profile%2Fivi%2Fmesa.git ir_to_mesa: Set the swizzle on constant struct src regs. MESA_GLSL=nopt now produces believable output for glsl-fs-raytrace. --- diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index defacc7..5cc999c 100644 --- a/src/mesa/program/ir_to_mesa.cpp +++ b/src/mesa/program/ir_to_mesa.cpp @@ -1389,6 +1389,7 @@ ir_to_mesa_visitor::visit(ir_constant *ir) if (ir->type->base_type == GLSL_TYPE_STRUCT) { ir_to_mesa_src_reg temp_base = get_temp(ir->type); + temp_base.swizzle = SWIZZLE_NOOP; ir_to_mesa_dst_reg temp = ir_to_mesa_dst_reg_from_src(temp_base); foreach_iter(exec_list_iterator, iter, ir->components) {