i965/fs: Implement fs_inst::force_sechalf support on Broadwell.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 18 Apr 2014 00:58:45 +0000 (17:58 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 18 Apr 2014 18:57:33 +0000 (11:57 -0700)
commita1273a07edb58ce3017f30014626766724cd8e53
tree2045c376938b6bd995b4cd18041e0829dbcd038b
parent92840aabf7a96583619a01a8257ef6f117f0ca50
i965/fs: Implement fs_inst::force_sechalf support on Broadwell.

Back when I originally wrote this code, force_sechalf was only used for
Gen4 code, so I didn't bother hooking it up.  However, it's used more
generally these days.  In particular, we use it for computing
gl_SamplePosition.

Fixes Piglit's spec/ARB_sample_shading/builtin-gl-sample-position tests.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=77222
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/gen8_fs_generator.cpp
src/mesa/drivers/dri/i965/gen8_generator.cpp
src/mesa/drivers/dri/i965/gen8_generator.h