noop: s/enum pipe_transfer_usage/unsigned/ to fix MSVC warning
authorBrian Paul <brianp@vmware.com>
Sat, 4 May 2019 16:02:48 +0000 (10:02 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 8 May 2019 16:05:41 +0000 (10:05 -0600)
The function pointer declaration in pipe_context uses unsigned
for the bitmask.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/driver_noop/noop_pipe.c

index a6497f076779b4168a8697ffafb3ac3f22b00515..2a4d3ebab63165c7a53f7a50aa85b4f82436b246 100644 (file)
@@ -172,7 +172,7 @@ static void noop_resource_destroy(struct pipe_screen *screen,
 static void *noop_transfer_map(struct pipe_context *pipe,
                                struct pipe_resource *resource,
                                unsigned level,
-                               enum pipe_transfer_usage usage,
+                               unsigned usage,
                                const struct pipe_box *box,
                                struct pipe_transfer **ptransfer)
 {