i965/vec4: Add a pass to reduce swizzles.
authorMatt Turner <mattst88@gmail.com>
Sun, 17 Aug 2014 22:13:54 +0000 (15:13 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 19 Aug 2014 19:37:11 +0000 (12:37 -0700)
commit9a071e3339afcf6fd937ae31121fa3b3face3bfe
tree1c599f89859defeb97e6a3ab2c3fed03aa9b73e6
parent5833680e7a9b51d6402036fd2a9edfc3b0454df2
i965/vec4: Add a pass to reduce swizzles.

total instructions in shared programs: 4344280 -> 4288033 (-1.29%)
instructions in affected programs:     397468 -> 341221 (-14.15%)

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