projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7714896
)
vc4: Don't automatically reallocate a PERSISTENT-mapped buffer.
author
Eric Anholt
<eric@anholt.net>
Wed, 11 Jul 2018 18:23:36 +0000
(11:23 -0700)
committer
Eric Anholt
<eric@anholt.net>
Thu, 12 Jul 2018 18:31:08 +0000
(11:31 -0700)
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
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/vc4/vc4_resource.c
b/src/gallium/drivers/vc4/vc4_resource.c
index 3ea45ba080b31f16dffd24c921f3b1c1e005d60a..4392b5943a9411967d788d3f7cd85b116c30376d 100644
(file)
--- a/
src/gallium/drivers/vc4/vc4_resource.c
+++ b/
src/gallium/drivers/vc4/vc4_resource.c
@@
-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_
COHER
ENT) &&
+ !(prsc->flags & PIPE_RESOURCE_FLAG_MAP_
PERSIST
ENT) &&
prsc->last_level == 0 &&
prsc->width0 == box->width &&
prsc->height0 == box->height &&