aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/blorp/blorp_genX_exec.h
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2017-06-05 17:34:38 -0700
committerIan Romanick <[email protected]>2017-06-26 13:41:11 -0700
commit1b101ca809debb9b730d99b92e8f0153f08aeb57 (patch)
tree94887d78f3c7ea7bc8e903847f4ff64bc4dd3397 /src/intel/blorp/blorp_genX_exec.h
parent25ea7aa5cd15e38f39463053428ac4138fd4ac14 (diff)
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 <[email protected]> Reviewed-by: Eduardo Lima Mitev <[email protected]>
Diffstat (limited to 'src/intel/blorp/blorp_genX_exec.h')
-rw-r--r--src/intel/blorp/blorp_genX_exec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/blorp/blorp_genX_exec.h b/src/intel/blorp/blorp_genX_exec.h
index 1d77877db53..91c0756bf35 100644
--- a/src/intel/blorp/blorp_genX_exec.h
+++ b/src/intel/blorp/blorp_genX_exec.h
@@ -535,7 +535,7 @@ blorp_emit_sampler_state(struct blorp_batch *batch,
sampler.VAddressMagFilterRoundingEnable = true;
sampler.UAddressMinFilterRoundingEnable = true;
sampler.UAddressMagFilterRoundingEnable = true;
-#if GEN_GEN >= 6
+#if GEN_GEN > 6
sampler.NonnormalizedCoordinateEnable = true;
#endif
}