vk: Query aperture size up front in anv_physical_device_init()
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Tue, 21 Jul 2015 20:09:25 +0000 (13:09 -0700)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Tue, 11 Aug 2015 00:18:55 +0000 (17:18 -0700)
commit9564dd37a00f642d2637ffa15c2f27fb8992aa50
tree6fb869f4604f6c6c6fe1fb1e2c5d9766d477909a
parent8605ee60e086ceb936000d3942a902239105637d
vk: Query aperture size up front in anv_physical_device_init()

We already query the device in various ways here and we can just also
get the aperture size.  This avoids keeping an extra drm fd open
during the life time of the driver.

Also, we need to use explicit 64 bit types for the aperture size, not
size_t.
src/vulkan/anv_device.c
src/vulkan/anv_gem.c
src/vulkan/anv_private.h