anv: Allocate workaround buffer in local memory if present
authorMark Janes <mark.a.janes@intel.com>
Fri, 28 Aug 2020 20:01:53 +0000 (13:01 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 18 Aug 2021 13:55:13 +0000 (13:55 +0000)
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12318>

src/intel/vulkan/anv_device.c

index 52df97b..e31fa2f 100644 (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)