summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>2018-06-04 09:54:29 +0100
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>2018-06-05 14:18:35 +0100
commit9aedee64acefd707aae62991f03ed43cb49da5d9 (patch)
tree8dc18cefccf828470ae6387b43aeb6696835fa96
parent66c61797ada12e0e2b396affcc2dc495b6cc04ed (diff)
downloadmesa-master.tar.gz
mesa-master.tar.xz
anv: intel: add softpin flag on imported BOsHEADmaster
Looks like we forgot to update this bit of the driver for softpin. Fixes: 4affeba1e9eb42 ("anv: Soft-pin everything else") Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
-rw-r--r--src/intel/vulkan/anv_intel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_intel.c b/src/intel/vulkan/anv_intel.c
index 431cef5c6a..06db5787a9 100644
--- a/src/intel/vulkan/anv_intel.c
+++ b/src/intel/vulkan/anv_intel.c
@@ -76,6 +76,8 @@ VkResult anv_CreateDmaBufImageINTEL(
uint64_t bo_flags = 0;
if (device->instance->physicalDevice.supports_48bit_addresses)
bo_flags |= EXEC_OBJECT_SUPPORTS_48B_ADDRESS;
+ if (device->instance->physicalDevice.use_softpin)
+ bo_flags |= EXEC_OBJECT_PINNED;
result = anv_bo_cache_import(device, &device->bo_cache,
pCreateInfo->fd, bo_flags, &mem->bo);