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:
Mark Janes 2020-08-28 13:01:53 -07:00 committed by Marge Bot
parent 5c62ad34b6
commit c8f563b633

View file

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