From 6bea33008e42040335d5a44359be291f0b5ac24f Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 31 May 2016 07:25:03 -0600 Subject: 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 --- src/gallium/drivers/svga/svga_resource_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/drivers/svga/svga_resource_buffer.c') 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) { -- cgit v1.2.3