svga: s/unsigned/enum pipe_resource_usage/ for buffer usage variables
authorBrian Paul <brianp@vmware.com>
Wed, 25 May 2016 23:13:23 +0000 (17:13 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 26 May 2016 23:44:18 +0000 (17:44 -0600)
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/drivers/svga/svga_resource_buffer.c
src/gallium/drivers/svga/svga_screen_cache.c
src/gallium/drivers/svga/svga_screen_cache.h

index 9ecb97509c21f364e8f7a671637a9fe2b8fe0238..d91497cf19ff0881444958b68301fd4727968071 100644 (file)
@@ -69,7 +69,7 @@ static void *
 svga_buffer_transfer_map(struct pipe_context *pipe,
                          struct pipe_resource *resource,
                          unsigned level,
-                         unsigned usage,
+                         enum pipe_resource_usage usage,
                          const struct pipe_box *box,
                          struct pipe_transfer **ptransfer)
 {
index 321c564e7f551152c6612ce5d2edce36c2bb72cd..eaa589c4c2697402a21e6950b92a09edb3432315 100644 (file)
@@ -413,7 +413,7 @@ svga_screen_cache_init(struct svga_screen *svgascreen)
  */
 struct svga_winsys_surface *
 svga_screen_surface_create(struct svga_screen *svgascreen,
-                           unsigned bind_flags, unsigned usage,
+                           unsigned bind_flags, enum pipe_resource_usage usage,
                            struct svga_host_surface_cache_key *key)
 {
    struct svga_winsys_screen *sws = svgascreen->sws;
index 424eb2c5ae1f78aee54ccc784691d592a9e572f0..05d8c56d83c18bcc2d102c7f9112125997a7e217 100644 (file)
@@ -140,7 +140,7 @@ svga_screen_cache_init(struct svga_screen *svgascreen);
 
 struct svga_winsys_surface *
 svga_screen_surface_create(struct svga_screen *svgascreen,
-                           unsigned bind_flags, unsigned usage,
+                           unsigned bind_flags, enum pipe_resource_usage usage,
                            struct svga_host_surface_cache_key *key);
 
 void