OSDN Git Service

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)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 15 Jun 2016 08:29:11 +0000 (09:29 +0100)
commite84116f3641114e400e92bbeb7f11ea9fa97f896
treef5221962403c10aca73177e5c8a1652cce6d5b68
parent6c5c1bc1b96cf5517d8f76e33a38b1c5c76456b1
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>
(cherry picked from commit a7d029d3dfac1da2701be75ff4d1589ac562e916)
src/mesa/drivers/dri/i965/brw_cs.c