From 9aedee64acefd707aae62991f03ed43cb49da5d9 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Mon, 4 Jun 2018 09:54:29 +0100 Subject: [PATCH] anv: intel: add softpin flag on imported BOs MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Tapani Pälli Reviewed-by: Jason Ekstrand --- src/intel/vulkan/anv_intel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/intel/vulkan/anv_intel.c b/src/intel/vulkan/anv_intel.c index 431cef5c6ac..06db5787a9c 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); -- 2.30.2