i965/vs: Trim the swizzle of the scratch write temporary.
authorEric Anholt <eric@anholt.net>
Tue, 16 Oct 2012 00:51:59 +0000 (17:51 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 17 Oct 2012 19:24:00 +0000 (12:24 -0700)
commit338fd85e624883996bf9072ca710f2d04e3c59dd
tree2aa60fadc5d7f11940c1a9b03d6393ea7dc8269e
parentaf911b2819e5175008c67e6939d88ec28cda69d1
i965/vs: Trim the swizzle of the scratch write temporary.

This fixes confusion by the upcoming live variable analysis which saw e.g. use
of temp.w when only temp.xyz were initialized in the basic block, and
concluded that temp.w must have come from outside of the block (even though it
was never initialized anywhere).

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp