From: Mark Janes Date: Fri, 28 Aug 2020 20:01:53 +0000 (-0700) Subject: anv: Allocate workaround buffer in local memory if present X-Git-Tag: upstream/22.3.5~19090 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e610f4b5f23a738b6eff299e1728bda851c88be2;p=platform%2Fupstream%2Fmesa.git anv: Allocate workaround buffer in local memory if present Reviewed-by: Jason Ekstrand Part-of: --- diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 52df97b..e31fa2f 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)