blorp: Use normalized coordinates on Gen6
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 6 Jun 2017 00:34:38 +0000 (17:34 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 26 Jun 2017 20:41:11 +0000 (13:41 -0700)
commit1b101ca809debb9b730d99b92e8f0153f08aeb57
tree94887d78f3c7ea7bc8e903847f4ff64bc4dd3397
parent25ea7aa5cd15e38f39463053428ac4138fd4ac14
blorp: Use normalized coordinates on Gen6

Apparently, the sampler has some sort of precision issues for
non-normalized texture coordinates with linear filtering.  This caused
some small precision issues in scaled blits.  Work around this by using
normalized coordinates.  There is some extra work necessary because Gen6
uses TEX (instead of TXF) for some multisample resolve blits.

Fixes piglit.spec.arb_framebuffer_object.fbo-blit-stretch on SNB.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68365
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
src/intel/blorp/blorp_blit.c
src/intel/blorp/blorp_genX_exec.h