anv: Don't place scratch buffers above the 32-bit boundary
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 22 Apr 2017 22:51:01 +0000 (15:51 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 27 Apr 2017 09:04:57 +0000 (02:04 -0700)
commitc43b4bc85eddba8bc31665cfee5928bed8343516
tree5fa925d3c8e9a6f6d4cc3548502399d63aa2d533
parentf205e19e4f8e60ef74aab804a73ba6c2f3904a6c
anv: Don't place scratch buffers above the 32-bit boundary

This fixes rendering corruptions in DOOM.  Hopefully, it will also make
Jenkins a bit more stable as we've been seeing some random failures and
GPU hangs ever since turning on 48bit.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100620
Fixes: 651ec926fc1 "anv: Add support for 48-bit addresses"
Tested-by: Grazvydas Ignotas <notasas@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: "17.1" <mesa-stable@lists.freedesktop.org>
src/intel/vulkan/anv_allocator.c