i965: Fix the SF Vertex URB Read Length calculation for Gen7 platforms.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 2 Feb 2013 20:46:57 +0000 (12:46 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 3 Feb 2013 21:41:09 +0000 (13:41 -0800)
commit44aa2e15f692965be76229e67f919bf967fc7d67
tree6f26c3f2ae2fcebf3178ae879d9260f2e29724e8
parent09fbc298283b41cf3f25d75842a6d8ab4952dca1
i965: Fix the SF Vertex URB Read Length calculation for Gen7 platforms.

Ivybridge doesn't appear to have the same errata as Sandybridge; no
corruption was observed by setting it to more than the minimal correct
value.  It's possible that we were simply lucky, since the URB entries
are 1024-bit on Ivybridge vs. 512-bit Sandybridge.  Or perhaps the
underlying hardware issue is fixed.

Either way, we may as well program the minimum value since it's now
readily available, likely to be more efficient, and possibly more
correct.

v2: Use GEN7_SBE_* defines rather than GEN6_SF_*.  (A copy and paste
    mistake.)  They're the same, but using the right names is better.

NOTE: This is a candidate for all stable branches.
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/gen7_sf_state.c