freedreno: Limit cached staging BOs to PIPE_MAP_READ
authorRob Clark <robdclark@chromium.org>
Mon, 12 Dec 2022 22:20:53 +0000 (14:20 -0800)
committerMarge Bot <emma+marge@anholt.net>
Sat, 17 Dec 2022 19:14:12 +0000 (19:14 +0000)
commitbe6d21ed56a02b4343442c3bf2b314fcdc5c34e2
tree43d099adaf9de6ad8ba6353ebbd2d3fc6ac1a30d
parent4be235af7ca3f06af41ba8217565f7c2627deba4
freedreno: Limit cached staging BOs to PIPE_MAP_READ

WC is fine for staging upload buffers, and will let us hit the default
heap.  Probably introducing a separate cached-coherent heap is overkill,
and given that staging uploads are common (but downloads uncommon, out-
side of dEQP/piglit), it is better to just ask for WC.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20263>
src/gallium/drivers/freedreno/freedreno_resource.c