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_vector_splitting.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_vector_splitting.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp b/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp index 00d5c20248..d4da86b3b0 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp @@ -281,9 +281,6 @@ ir_vector_splitting_visitor::visit_leave(ir_assignment *ir) if (rhs) { new_rhs = new(mem_ctx) ir_dereference_variable(rhs->components[i]); - /* If we're writing into a writemask, smear it out to that channel. */ - if (!lhs) - new_rhs = new(mem_ctx) ir_swizzle(new_rhs, i, i, i, i, i + 1); } else { new_rhs = new(mem_ctx) ir_swizzle(ir->rhs->clone(mem_ctx, NULL), i, i, i, i, 1); |