i965/fs: Use WE_all for gl_SampleID header register munging.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 16 Jul 2014 03:40:55 +0000 (20:40 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 16 Jul 2014 05:10:10 +0000 (22:10 -0700)
commitcf1b5eee7f36af29d1d5caba3538ad4985e51f81
treeeed7d835060ea2d4ce988d1b0b1fbf43b7bf4da3
parente5adc560cc8544200faa3e04504202839626ab37
i965/fs: Use WE_all for gl_SampleID header register munging.

This code should execute without regard to the currently executing
channels.  Asking for gl_SampleID inside control flow might break in
strange ways.  It appears to break even at the top of the program in
SIMD16 mode occasionally as well.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Cc: mesa-stable@lists.freedesktop.org
src/mesa/drivers/dri/i965/brw_fs.cpp