i965/fs: Trim unneeded channels in SampleID setup.
authorMatt Turner <mattst88@gmail.com>
Wed, 21 Oct 2015 01:23:50 +0000 (18:23 -0700)
committerMatt Turner <mattst88@gmail.com>
Thu, 22 Oct 2015 19:26:54 +0000 (12:26 -0700)
commite2344e11ce8ddefb89a222bbf63a7c60e8ba5655
tree58767764343979f84c76741d2fcccca815020ce9
parente10fc055e7dc5281f03a77088a24392098e3473b
i965/fs: Trim unneeded channels in SampleID setup.

The AND and SHR produce a scalar value that we had been replicating
across $dispatch_width channels. The immediate MOV produces only four
useful channels of data.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i965/brw_fs.cpp