i965: Account for poor address calculations in Haswell CS scratch size.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 9 Jun 2016 23:11:46 +0000 (16:11 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 12 Jun 2016 07:39:45 +0000 (00:39 -0700)
commita7d029d3dfac1da2701be75ff4d1589ac562e916
tree8db91ca6a74b049b1054a6799e23445ff4f26313
parent2213ffdb4bb79856f0556bdf2bfd4bdf57720232
i965: Account for poor address calculations in Haswell CS scratch size.

Curro figured this out by investigating the simulator.  Apparently
there's also a workaround in the Windows driver.  I'm not sure it's
actually documented anywhere.

We were underallocating the scratch buffer by a factor of 128/70.

v2: Rename threads_per_subslice to scratch_ids_per_subslice
    (suggested by Jordan Justen).

Cc: "12.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/brw_cs.c