i965/fs: Set force_uncompressed and force_sechalf on samplepos setup.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 11 Jul 2014 00:48:39 +0000 (17:48 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 16 Jul 2014 05:10:06 +0000 (22:10 -0700)
commite5adc560cc8544200faa3e04504202839626ab37
treeb308b637dd6492d3b2d48987cb811ed95bb546f1
parent2eaf3f670fea4ce4466340141244e41a45542c13
i965/fs: Set force_uncompressed and force_sechalf on samplepos setup.

gen8_fs_generator uses these to decide whether to set the execution size
to 8 or 16, so we incorrectly made both of these MOVs the full width in
SIMD16 shaders.  (It happened to work out on Gen4-7.)

Setting them should also help inform optimization passes what's really
going on, which could help avoid bugs.

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