mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 07:58:07 +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> |
||
|---|---|---|
| .. | ||
| amd | ||
| android_stub | ||
| asahi | ||
| broadcom | ||
| c11 | ||
| compiler | ||
| drm-shim | ||
| egl | ||
| etnaviv | ||
| freedreno | ||
| gallium | ||
| gbm | ||
| getopt | ||
| glx | ||
| gtest | ||
| imagination | ||
| imgui | ||
| intel | ||
| loader | ||
| mapi | ||
| mesa | ||
| microsoft | ||
| nouveau | ||
| panfrost | ||
| tool | ||
| util | ||
| virtio | ||
| vulkan | ||
| .clang-format | ||
| meson.build | ||