projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b47d13f
)
util: add comment about bogus transfer flags
author
Roland Scheidegger
<sroland@vmware.com>
Fri, 7 Jun 2013 19:12:22 +0000
(21:12 +0200)
committer
Roland Scheidegger
<sroland@vmware.com>
Fri, 7 Jun 2013 19:15:01 +0000
(21:15 +0200)
src/gallium/auxiliary/util/u_transfer.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_transfer.c
b/src/gallium/auxiliary/util/u_transfer.c
index 56e059bfd03a85e72a06f4632f3f30f4cfcd6aa8..7804f2a82ea55b30a663835f6e382313255e6005 100644
(file)
--- a/
src/gallium/auxiliary/util/u_transfer.c
+++ b/
src/gallium/auxiliary/util/u_transfer.c
@@
-25,6
+25,7
@@
void u_default_transfer_inline_write( struct pipe_context *pipe,
usage |= PIPE_TRANSFER_WRITE;
/* transfer_inline_write implicitly discards the rewritten buffer range */
+ /* XXX this looks very broken for non-buffer resources having more than one dim. */
if (box->x == 0 && box->width == resource->width0) {
usage |= PIPE_TRANSFER_DISCARD_WHOLE_RESOURCE;
} else {