mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
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:a2014c2eb9("vc4: Simplify the DISCARD_RANGE handling") (cherry picked from commit50a3a283d0)
This commit is contained in:
parent
01d1f4713f
commit
b10229038c
1 changed files with 1 additions and 1 deletions
|
|
@ -161,7 +161,7 @@ vc4_resource_transfer_map(struct pipe_context *pctx,
|
|||
*/
|
||||
if ((usage & PIPE_TRANSFER_DISCARD_RANGE) &&
|
||||
!(usage & PIPE_TRANSFER_UNSYNCHRONIZED) &&
|
||||
!(prsc->flags & PIPE_RESOURCE_FLAG_MAP_COHERENT) &&
|
||||
!(prsc->flags & PIPE_RESOURCE_FLAG_MAP_PERSISTENT) &&
|
||||
prsc->last_level == 0 &&
|
||||
prsc->width0 == box->width &&
|
||||
prsc->height0 == box->height &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue