summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_suballoc.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-05-25 17:13:56 -0600
committerBrian Paul <[email protected]>2016-05-26 17:44:18 -0600
commit21a3fb9cd838cdcbdf1be97453878abf74dd3f6f (patch)
treeaa3f3f34e102e192cd22ea1ac42066953ac2005c /src/gallium/auxiliary/util/u_suballoc.c
parent45078e8890a6709390007d0fce8d6ed1be5ad5c0 (diff)
util: s/unsigned/enum pipe_resource_usage/ for buffer usage variables
Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_suballoc.c')
-rw-r--r--src/gallium/auxiliary/util/u_suballoc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/util/u_suballoc.c b/src/gallium/auxiliary/util/u_suballoc.c
index efa9a0c5e09..3f9ede075f2 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 alignment; /* Alignment of each sub-allocation. */
unsigned bind; /* Bitmask of PIPE_BIND_* flags. */
- unsigned usage; /* One of PIPE_USAGE_* flags. */
+ enum pipe_resource_usage usage;
boolean zero_buffer_memory; /* If the buffer contents should be zeroed. */
struct pipe_resource *buffer; /* The buffer we suballocate from. */
@@ -59,7 +59,8 @@ struct u_suballocator {
*/
struct u_suballocator *
u_suballocator_create(struct pipe_context *pipe, unsigned size,
- unsigned alignment, unsigned bind, unsigned usage,
+ unsigned alignment, unsigned bind,
+ enum pipe_resource_usage usage,
boolean zero_buffer_memory)
{
struct u_suballocator *allocator = CALLOC_STRUCT(u_suballocator);