summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-02-20 17:54:12 +0100
committerMarek Olšák <[email protected]>2017-02-20 18:04:27 +0100
commite8c2a056622324f56559883170793ba3340bb1c2 (patch)
tree67f007bee95f80d342b2839375af90e53019261c /src/gallium/auxiliary
parenta042465c218eaed098d505e0a2e78508b554fc67 (diff)
gallium/u_suballoc: update comments
as requested by Brian. Trivial.
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/util/u_suballoc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/util/u_suballoc.c b/src/gallium/auxiliary/util/u_suballoc.c
index 392bba7d6dd..d54026edf9e 100644
--- a/src/gallium/auxiliary/util/u_suballoc.c
+++ b/src/gallium/auxiliary/util/u_suballoc.c
@@ -43,7 +43,7 @@ struct u_suballocator {
unsigned size; /* Size of the whole buffer, in bytes. */
unsigned bind; /* Bitmask of PIPE_BIND_* flags. */
enum pipe_resource_usage usage;
- unsigned flags; /* pipe_resource::flags */
+ unsigned flags; /* bitmask of PIPE_RESOURCE_FLAG_x */
boolean zero_buffer_memory; /* If the buffer contents should be zeroed. */
struct pipe_resource *buffer; /* The buffer we suballocate from. */
@@ -54,8 +54,10 @@ struct u_suballocator {
/**
* Create a suballocator.
*
- * \p zero_buffer_memory determines whether the buffer contents should be
- * cleared to 0 after the allocation.
+ * \param flags bitmask of PIPE_RESOURCE_FLAG_x
+ * \param zero_buffer_memory determines whether the buffer contents should be
+ * cleared to 0 after the allocation.
+ *
*/
struct u_suballocator *
u_suballocator_create(struct pipe_context *pipe, unsigned size, unsigned bind,