From a5c6c8a31b240729baa12e2eca0ef53199efeed2 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 27 Sep 2010 15:10:34 -0700 Subject: [PATCH] i965: Remove swizzling of assignment to vector-splitting single-channel LHS. We'd end up reading some non-x component of the float RHS. +53 piglits. --- src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp | 2 -- 1 file changed, 2 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 9b58916cf2b..83b4af05bcb 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp @@ -319,8 +319,6 @@ ir_vector_splitting_visitor::visit_leave(ir_assignment *ir) ir->write_mask = (1 << 0); handle_rvalue(&ir->rhs); - ir->rhs = new(mem_ctx) ir_swizzle(ir->rhs, - elem, elem, elem, elem, 1); } else { handle_rvalue(&ir->rhs); } -- 2.30.2