i965/vec4: Reswizzle sources when necessary.
authorMatt Turner <mattst88@gmail.com>
Sun, 31 Aug 2014 18:10:02 +0000 (11:10 -0700)
committerMatt Turner <mattst88@gmail.com>
Fri, 5 Sep 2014 17:22:06 +0000 (10:22 -0700)
commit1ee1d8ab468cafd25cfcc513319f3f046492947f
tree7f7ea7519b5bb18d176b8c339c0e9e2ef3f2557b
parente49cfe9bfcdaed31dc701a9c2d544d571f1ad04e
i965/vec4: Reswizzle sources when necessary.

Despite the comment above the function claiming otherwise, the function
did not reswizzle sources, which would lead to bad code generation since
commit 04895f5c, which began claiming we could do such swizzling when we
could not.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82932
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vec4.cpp
src/mesa/drivers/dri/i965/brw_vec4.h