Mesa (main): anv: Allocate workaround buffer in local memory if present

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Aug 18 14:10:27 UTC 2021


Module: Mesa
Branch: main
Commit: e610f4b5f23a738b6eff299e1728bda851c88be2
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e610f4b5f23a738b6eff299e1728bda851c88be2

Author: Mark Janes <mark.a.janes at intel.com>
Date:   Fri Aug 28 13:01:53 2020 -0700

anv: Allocate workaround buffer in local memory if present

Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12318>

---

 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)



More information about the mesa-commit mailing list