freedreno/a3xx/compiler: fix for replicating instructions
authorRob Clark <robclark@freedesktop.org>
Fri, 21 Jun 2013 18:39:54 +0000 (14:39 -0400)
committerRob Clark <robclark@freedesktop.org>
Fri, 21 Jun 2013 19:37:05 +0000 (15:37 -0400)
commit3f965556b49e58c6cce3e58ab4fecefabab71216
tree523d5c26746e67681c4122a4477075520b0bcbb4
parent0343f20e2f8cc8a588effb028c4043ed2a4744c0
freedreno/a3xx/compiler: fix for replicating instructions

If we are accumulating result into tmp.x, and need a mov to final
destination, we want to move the .x component into all of the components
enabled from the read dest's writemask, ie. we want:

  MOV dst.xyzw tmp.xxxx

rather than:

  MOV dst.xyzw tmp.xyzw

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/a3xx/fd3_compiler.c