i965: Fix border color on Sandybridge and Ivybridge.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 20 Jan 2012 11:33:40 +0000 (03:33 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 23 Jan 2012 18:38:14 +0000 (10:38 -0800)
commitc25e5300cba7628b58df93ead14ebc3cc32f338c
tree4eac511b1bb455d64d671ee3ce91a9d3df57ab9c
parent4e5a8937d1a1bfb2a3bd067ed01e036728675fc2
i965: Fix border color on Sandybridge and Ivybridge.

While reading through the simulator, I found some interesting code that
looks like it checks the sampler default color pointer against the bound
set in STATE_BASE_ADDRESS.  On failure, it appears to program it to the
base address itself.

So I decided to try programming a legitimate bound, and lo and behold,
border color worked.

+92 piglits on Sandybridge.  Also fixes Lightsmark on Ivybridge.

NOTE: This is a candidate for stable release branches.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=28924
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=38868
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_misc_state.c