anv: bo_cache: allow importing a BO larger than needed
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 11 Oct 2017 16:21:53 +0000 (17:21 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 11 Oct 2017 21:29:55 +0000 (22:29 +0100)
commitc0a4f56fb9945e36a004bc38852fbb801aae3bd5
tree2753ed51596fa24eea9a33c2fb868c811208dac3
parentcf3dd91969bd85f3c18d9f56d9fade70ea425a29
anv: bo_cache: allow importing a BO larger than needed

It's not a problem if a BO has been allocated larger than we need it
to be.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102940
Fixes: 818b857914 ("anv: Use the BO cache for DeviceMemory allocations")
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Cc: mesa-stable@lists.freedesktop.org
src/intel/vulkan/anv_allocator.c