dzn: Don't use write-combine memory for cache-coherent UMA
authorJesse Natalie <jenatali@microsoft.com>
Mon, 27 Mar 2023 18:09:57 +0000 (11:09 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 6 Apr 2023 22:08:28 +0000 (22:08 +0000)
commiteaa8c8097cb4f7a11e91f6214972fd236effe100
tree33c0a078c10af79d3445f9ff6efe4515db7992d7
parent3db019a816980abf8522c9fa7c66145383e3d180
dzn: Don't use write-combine memory for cache-coherent UMA

Cache coherent UMA implies that the GPU is reading data through the
CPU caches. Using write-combined CPU pages for such a system would
be bad, since the GPU would then be reading uncached data. One
example of such a system is WARP. This significantly improves WARP's
performance for some apps (including the CTS).

Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22225>
src/microsoft/vulkan/dzn_device.c