mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
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:
parent
0afda06441
commit
e610f4b5f2
1 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue