i965/blorp: Use 8k chunk size for urb allocation
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Fri, 15 Apr 2016 07:12:20 +0000 (10:12 +0300)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Thu, 21 Apr 2016 05:36:26 +0000 (08:36 +0300)
commitede09e672ae277aa78def69fe016a4be454b28ed
treecc45414f6817dd8cb558a2f673c62f117b2034c0
parente04b3cdf33f6fdb363c652e935d8a0b427ef6b15
i965/blorp: Use 8k chunk size for urb allocation

Previously, we hardcoded "VS URB Starting Address" to 2 (in 8kB chunks),
which meant VS URB data would start at an offset of 16kB.

However, on Haswell GT3 and Gen8+, we allocate the first 32kB for the
push constant region.  This means that the PS push constant and VS URB
data regions overlap, which can lead to corruption.

v2 (Ken): Better description of the change, and do not change vs_size
          from 2 to 1.

Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/gen7_blorp.cpp