summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_upload_mgr.h
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2012-08-17 15:20:07 -0600
committerBrian Paul <brianp@vmware.com>2012-08-18 07:39:52 -0600
commitd65eb02537813ad1f469fa3d597726fcb5a76bb0 (patch)
tree6ed5eb4b4024095a0bc1e770600830d0441796d9 /src/gallium/auxiliary/util/u_upload_mgr.h
parent84e5cb37d3cf0dd0b224d2431c7417d5e2fa6453 (diff)
downloadexternal_mesa3d-d65eb02537813ad1f469fa3d597726fcb5a76bb0.zip
external_mesa3d-d65eb02537813ad1f469fa3d597726fcb5a76bb0.tar.gz
external_mesa3d-d65eb02537813ad1f469fa3d597726fcb5a76bb0.tar.bz2
util: update and fix u_upload_mgr.h comments
Diffstat (limited to 'src/gallium/auxiliary/util/u_upload_mgr.h')
-rw-r--r--src/gallium/auxiliary/util/u_upload_mgr.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/util/u_upload_mgr.h b/src/gallium/auxiliary/util/u_upload_mgr.h
index b50d3f3..82215a5 100644
--- a/src/gallium/auxiliary/util/u_upload_mgr.h
+++ b/src/gallium/auxiliary/util/u_upload_mgr.h
@@ -56,14 +56,14 @@ struct u_upload_mgr *u_upload_create( struct pipe_context *pipe,
*/
void u_upload_destroy( struct u_upload_mgr *upload );
-/* Unmap and release old upload buffer.
+/**
+ * Unmap and release old upload buffer.
*
* This is like u_upload_unmap() except the upload buffer is released for
* recycling. This should be called on real hardware flushes on systems
* that don't support the PIPE_TRANSFER_UNSYNCHRONIZED flag, as otherwise
* the next u_upload_buffer will cause a sync on the buffer.
*/
-
void u_upload_flush( struct u_upload_mgr *upload );
/**
@@ -86,7 +86,6 @@ void u_upload_unmap( struct u_upload_mgr *upload );
* \param size Size of the allocation.
* \param out_offset Pointer to where the new buffer offset will be returned.
* \param outbuf Pointer to where the upload buffer will be returned.
- * \param flushed Whether the upload buffer was flushed.
* \param ptr Pointer to the allocated memory that is returned.
*/
enum pipe_error u_upload_alloc( struct u_upload_mgr *upload,
@@ -112,7 +111,7 @@ enum pipe_error u_upload_data( struct u_upload_mgr *upload,
/**
- * Allocate and copy an input buffer to the upload buffer.
+ * Allocate space in an upload buffer and copy an input buffer to it.
*
* Same as u_upload_data, except that the input data comes from a buffer
* instead of a user pointer.