st/nine: Use PIPE_MAP_ONCE for persistent buffers
authorAxel Davy <davyaxel0@gmail.com>
Sat, 13 Mar 2021 21:39:28 +0000 (22:39 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 14 Apr 2021 08:33:14 +0000 (08:33 +0000)
commit5702b15cd9d6105111210f8d5521b413e0403cd7
tree1649d946309fe3f39919d456b3ad232aef805949
parent7ac9c9c6675023941ea6460602a9e028a9343b51
st/nine: Use PIPE_MAP_ONCE for persistent buffers

This enables radeonsi to really unmap on release,
which reduces virtual memory usage.

Do it only on 32 bits, as it can reduce performance if the
allocation is reused.

Signed-off-by: Axel Davy <davyaxel0@gmail.com>
Acked-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160>
src/gallium/frontends/nine/nine_buffer_upload.c