summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-05-31 07:25:03 -0600
committerBrian Paul <[email protected]>2016-05-31 10:20:36 -0600
commit6bea33008e42040335d5a44359be291f0b5ac24f (patch)
tree3523565b1d065e0ef3e28846d933a7a780c2f45e /src
parent7ca55d2da88edb45cd99ef42888de18a61e64b0a (diff)
svga: change enum pipe_resource_usage back to unsigned
This parameter is actually a bitmask of PIPE_TRANSFER_x flags. Change it back to a simple unsigned type. IIRC, some compilers complain about masks of enum values. Also, this make the function signature match u_resource_vtbl::transfer_map() again. Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/svga/svga_resource_buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_resource_buffer.c b/src/gallium/drivers/svga/svga_resource_buffer.c
index d91497cf19f..9ecb97509c2 100644
--- a/src/gallium/drivers/svga/svga_resource_buffer.c
+++ b/src/gallium/drivers/svga/svga_resource_buffer.c
@@ -69,7 +69,7 @@ static void *
svga_buffer_transfer_map(struct pipe_context *pipe,
struct pipe_resource *resource,
unsigned level,
- enum pipe_resource_usage usage,
+ unsigned usage,
const struct pipe_box *box,
struct pipe_transfer **ptransfer)
{