anv: Allocate workaround buffer in local memory if present

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12318>
This commit is contained in:
Mark Janes 2020-08-28 13:01:53 -07:00 committed by Marge Bot
parent 0afda06441
commit e610f4b5f2

View file

@ -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)