anv/allocator: Set the BO flags in bo_cache_alloc/import
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 30 May 2018 22:34:25 +0000 (15:34 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 1 Jun 2018 21:27:10 +0000 (14:27 -0700)
commitb0d50247a7049350ef30adcefc609039ce86beee
tree327a448861a4dfe10aca0ee31d2984544666481e
parent27cc68d9e90c8d2031383fa6dc28fe910a351eb6
anv/allocator: Set the BO flags in bo_cache_alloc/import

It's safer to set them there because we have the opportunity to properly
handle combining flags if a BO is imported more than once.

Reviewed-by: Scott D Phillips <scott.d.phillips@intel.com>
src/intel/vulkan/anv_allocator.c
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_intel.c
src/intel/vulkan/anv_private.h
src/intel/vulkan/anv_queue.c