intel: Store the aperture size in devinfo.
authorRafael Antognolli <rafael.antognolli@intel.com>
Thu, 14 May 2020 18:44:29 +0000 (11:44 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 15 May 2020 16:57:04 +0000 (16:57 +0000)
commitbb3545a6ee419c4802ac4153eb690a93dc2f339d
tree3f4e34cf6f129675028c2f151de9ffa285dc8052
parenta887ad7c84e14fdad7907037a39e9fee9d504bf3
intel: Store the aperture size in devinfo.

We will later use the devinfo from iris_bufmgr, where we don't have
access to the screen pointer. And since we are moving it, we can reuse
it in Anv and i965.

v2: return error code and check for it on Anv (Lionel).
v3: Remove anv_gem_get_aperture() from anv_private.h and stubs (Lionel).

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5043>
src/gallium/drivers/iris/iris_screen.c
src/intel/dev/gen_device_info.c
src/intel/dev/gen_device_info.h
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/intel_screen.c