mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 17:50:11 +01:00
util: add comment about bogus transfer flags
This commit is contained in:
parent
b47d13f425
commit
fa8cefa892
1 changed files with 1 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue