i965: Don't use CUBE wrap modes for integer formats on IVB/BYT.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 29 Mar 2016 03:07:13 +0000 (20:07 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 29 Mar 2016 22:43:18 +0000 (15:43 -0700)
commitd4a5a61d445e683c20de00c1febe847b4c2db910
treeb93b9460f7ffbc3431a6926547530fa498159d16
parentf8c69fbb5491c8790dd3bcf991f06151d15d92b9
i965: Don't use CUBE wrap modes for integer formats on IVB/BYT.

There is no linear filtering for integer formats, so we should always
be using CLAMP_TO_EDGE mode.

Fixes 46 dEQP cases on Ivybridge (which were likely broken by commit
0faf26e6a0a34c3544644852802484f2404cc83e).

This workaround doesn't appear to be necessary on any other hardware;
I haven't found any documentation mentioning errata in this area.

v2: Only apply on Ivybridge/Baytrail to avoid regressing GLES3.1 tests.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> [v1]
src/mesa/drivers/dri/i965/brw_sampler_state.c