72f104791d
Kernel makes every mapping coherent. If a memory type is truly incoherent, it's better to remove the host-visible flag than silently making it coherent. However, for app compatibility purpose, when coherent-cached memory type is unavailable, we emulate the first cached memory type with the first coherent memory type. Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24875>