diff options
author | Eric Anholt <eric@anholt.net> | 2010-09-22 14:14:30 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-09-22 14:15:27 -0700 |
commit | d74bab1fb67fe1334fd80eaf0d4e224fc6d96f22 (patch) | |
tree | df8d539748503d5011e38060fc0f32957dafd2fe /src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp | |
parent | 4bb42a4f7e86d3e6e09fa504ea2d8630cb877066 (diff) |
i965: Fix the vector/expression splitting for the write_mask change.
+113 piglits.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp b/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp index 478614090a..eba8a764e2 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp @@ -128,10 +128,7 @@ ir_channel_expressions_visitor::assign(ir_assignment *ir, int elem, ir_rvalue *v */ assert(ir->write_mask == (1 << ir->lhs->type->components()) - 1); - /* Smear the float across all the channels for the masked write. */ - val_swiz = new(mem_ctx) ir_swizzle(val, 0, 0, 0, 0, - ir->lhs->type->components()); - assign = new(mem_ctx) ir_assignment(lhs, val_swiz, NULL, (1 << elem)); + assign = new(mem_ctx) ir_assignment(lhs, val, NULL, (1 << elem)); ir->insert_before(assign); } |