mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-15 14:18:04 +02:00
When anv_device_map_bo() is called from anv_device_alloc_bo() it gets VkMemoryPropertyFlags set to 0 so it ends up with a write-combine caching for integrated platforms with LLC, see 'if (!(property_flags & VK_MEMORY_PROPERTY_HOST_CACHED_BIT)))'. Current approach also has issues when mapping with anv_MapMemory2KHR() as it would not have information to know that BO is a scanout. It was also not properly calculating mmap mode for platforms with PAT uAPI before "anv: Change default PAT entry to WC". So here storing alloc_flags to anv_bo so there is no mismatches between different code paths then using it to properly calculate the mmap mode. alloc_flags in anv_bo will also be used to calculate PAT index in future patches. Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26099> |
||
|---|---|---|
| .. | ||
| anv_batch_chain.c | ||
| anv_batch_chain.h | ||
| anv_device.c | ||
| anv_device.h | ||
| anv_gem.c | ||
| anv_gem.h | ||
| anv_kmd_backend.c | ||
| anv_queue.c | ||
| anv_queue.h | ||