svga: change enum pipe_resource_usage back to unsigned
authorBrian Paul <brianp@vmware.com>
Tue, 31 May 2016 13:25:03 +0000 (07:25 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 31 May 2016 16:20:36 +0000 (10:20 -0600)
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 <sroland@vmware.com>
src/gallium/drivers/svga/svga_resource_buffer.c

index d91497cf19ff0881444958b68301fd4727968071..9ecb97509c21f364e8f7a671637a9fe2b8fe0238 100644 (file)
@@ -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)
 {