glsl_to_tgsi: lower all ir_quadop_vector expressions
authorBryan Cain <bryancain3@gmail.com>
Wed, 27 Jul 2011 20:45:16 +0000 (15:45 -0500)
committerBryan Cain <bryancain3@gmail.com>
Mon, 1 Aug 2011 22:59:10 +0000 (17:59 -0500)
Unlike Mesa IR, TGSI doesn't have a SWZ opcode.

src/mesa/state_tracker/st_glsl_to_tgsi.cpp

index 6039488f26b47e41b3de0538668e201fd6777e01..0cbfc943a05d5c4af5f0422c5e3242dd0248ec70 100644 (file)
@@ -4825,7 +4825,7 @@ st_link_shader(struct gl_context *ctx, struct gl_shader_program *prog)
 
          progress = do_common_optimization(ir, true, options->MaxUnrollIterations) || progress;
 
-         progress = lower_quadop_vector(ir, true) || progress;
+         progress = lower_quadop_vector(ir, false) || progress;
 
          if (options->EmitNoIfs) {
             progress = lower_discard(ir) || progress;