From e610f4b5f23a738b6eff299e1728bda851c88be2 Mon Sep 17 00:00:00 2001 From: Mark Janes Date: Fri, 28 Aug 2020 13:01:53 -0700 Subject: [PATCH] anv: Allocate workaround buffer in local memory if present Reviewed-by: Jason Ekstrand Part-of: --- src/intel/vulkan/anv_device.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 52df97b73c7..e31fa2f9d41 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -3394,8 +3394,9 @@ VkResult anv_CreateDevice( } result = anv_device_alloc_bo(device, "workaround", 4096, - ANV_BO_ALLOC_CAPTURE | ANV_BO_ALLOC_MAPPED | - ANV_BO_ALLOC_LOCAL_MEM /* flags */, + ANV_BO_ALLOC_CAPTURE | + ANV_BO_ALLOC_MAPPED | + ANV_BO_ALLOC_LOCAL_MEM, 0 /* explicit_address */, &device->workaround_bo); if (result != VK_SUCCESS)