vc4: Don't automatically reallocate a PERSISTENT-mapped buffer.
authorEric Anholt <eric@anholt.net>
Wed, 11 Jul 2018 18:23:36 +0000 (11:23 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 12 Jul 2018 18:31:08 +0000 (11:31 -0700)
commit50a3a283d052a8d7a5f75fb45ab540d397fb22c2
treeb171ed506bcf862506e529e4e3f28fc3191cc3d2
parent7714896256d8850cb6c323ce4ecf11c489046966
vc4: Don't automatically reallocate a PERSISTENT-mapped buffer.

I had mistakenly used the COHERENT flag, which can only be set when
PERSISTENT is mapped, but isn't always.

Fixes: a2014c2eb9e0 ("vc4: Simplify the DISCARD_RANGE handling")
src/gallium/drivers/vc4/vc4_resource.c