nouveau: allow invalidating coherent/persistent buffer backings
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 30 May 2020 06:47:42 +0000 (02:47 -0400)
committerMarge Bot <eric+marge@anholt.net>
Sat, 30 May 2020 17:59:24 +0000 (17:59 +0000)
commit6e1c47b98df384b46ff41ffbf9689a93c78c040d
treebb8a635f629d6a71bc2d746c2be17cdedde555a5
parentc48f42e178a1cc484870367c0cfe5fbbf71d86cc
nouveau: allow invalidating coherent/persistent buffer backings

This is needed to support the core's usage of coherent buffers for
glVertex-style input. The reason why this was disallowed is that any
mappings will be invalidated. Let the state tracker worry about that,
and just reallocate when we're told.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Cc: mesa-stable@lists.freedesktop.org
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5276>
src/gallium/drivers/nouveau/nouveau_buffer.c