mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
v3d: 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 piglit bufferstorage-persistent read
This commit is contained in:
parent
e48c615292
commit
7714896256
1 changed files with 1 additions and 1 deletions
|
|
@ -168,7 +168,7 @@ v3d_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