anv: Nuke ANV_BO_ALLOC_WRITE_COMBINE
authorJosé Roberto de Souza <jose.souza@intel.com>
Thu, 27 Apr 2023 16:50:39 +0000 (09:50 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 19 May 2023 21:34:35 +0000 (21:34 +0000)
commitfd99b671ff122a06692fe8f0f3666578f60fc039
tree2c30e295f6902b4e566bab911e8524d0cd91d7d7
parenta6c5746b3778320c433c5ba7e0f1fa2fde8c5e75
anv: Nuke ANV_BO_ALLOC_WRITE_COMBINE

In i915 if the device has local memory it can only mmap bo with
I915_MMAP_OFFSET_FIXED, so all this set of ANV_BO_ALLOC_WRITE_COMBINE
were useless.

In Xe KMD there is no way to change mmap mode for all GPUs types.

So we can nuke bo->map_wc, ANV_BO_ALLOC_WRITE_COMBINE and related
dead code.

No changes in behavior expected here.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22483>
src/intel/vulkan/anv_allocator.c
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_private.h
src/intel/vulkan/i915/anv_kmd_backend.c