mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-23 01:50:24 +01:00
anv: Allocate buffers with write-combined local memory
Marginally improves DG1 performance (< 1%) v2: Only on local mem (Lionel) Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18841>
This commit is contained in:
parent
5c62ad34b6
commit
c8f563b633
1 changed files with 3 additions and 1 deletions
|
|
@ -3413,7 +3413,9 @@ VkResult anv_CreateDevice(
|
|||
|
||||
result = anv_device_alloc_bo(device, "workaround", 4096,
|
||||
ANV_BO_ALLOC_CAPTURE |
|
||||
ANV_BO_ALLOC_MAPPED,
|
||||
ANV_BO_ALLOC_MAPPED |
|
||||
(device->info->has_local_mem ?
|
||||
ANV_BO_ALLOC_WRITE_COMBINE : 0),
|
||||
0 /* explicit_address */,
|
||||
&device->workaround_bo);
|
||||
if (result != VK_SUCCESS)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue