intel: fix check for 48b ppgtt support
authorScott D Phillips <scott.d.phillips@intel.com>
Thu, 19 Apr 2018 14:54:28 +0000 (07:54 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 30 Apr 2018 18:34:19 +0000 (11:34 -0700)
commit8ffc6ee251bdcf4a91916b73c1be71d58e680d34
tree091d1ce053cd9ef6c35e4677b123187effd62816
parent1c5f4f4e17f74d823d9e38c678e40e9f49e2c053
intel: fix check for 48b ppgtt support

The previous logic of the supports_48b_addresses wasn't actually
checking if i915.ko was running with full_48bit_ppgtt. The ENOENT
it was checking for was actually coming from the invalid context
id provided in the test execbuffer.  There is no path in the
kernel driver where the presence of
EXEC_OBJECT_SUPPORTS_48B_ADDRESS leads to an error.

Instead, check the default context's GTT_SIZE param for a value
greater than 4 GiB

v2 (Ken): Fix in i965 as well.
v3 Check GTT_SIZE instead of HAS_ALIASING_PPGTT (Chris Wilson)

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_gem.c
src/intel/vulkan/anv_gem_stubs.c
src/intel/vulkan/anv_private.h
src/mesa/drivers/dri/i965/brw_bufmgr.c