summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@vmware.com>2013-06-07 21:12:22 +0200
committerRoland Scheidegger <sroland@vmware.com>2013-06-07 21:15:01 +0200
commitfa8cefa892bd12ae9719927ee159cf48776f68d8 (patch)
tree6da28331cff6245b441edf6833386a646ddb4b28 /src/gallium/auxiliary/util
parentb47d13f4255b9708ff52fa80c11fabe53540cdea (diff)
downloadexternal_mesa3d-fa8cefa892bd12ae9719927ee159cf48776f68d8.zip
external_mesa3d-fa8cefa892bd12ae9719927ee159cf48776f68d8.tar.gz
external_mesa3d-fa8cefa892bd12ae9719927ee159cf48776f68d8.tar.bz2
util: add comment about bogus transfer flags
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r--src/gallium/auxiliary/util/u_transfer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_transfer.c b/src/gallium/auxiliary/util/u_transfer.c
index 56e059b..7804f2a 100644
--- 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 {