From: Brian Paul Date: Wed, 25 May 2016 23:13:23 +0000 (-0600) Subject: svga: s/unsigned/enum pipe_resource_usage/ for buffer usage variables X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=45078e8890a6709390007d0fce8d6ed1be5ad5c0;p=mesa.git svga: s/unsigned/enum pipe_resource_usage/ for buffer usage variables Reviewed-by: Roland Scheidegger --- diff --git a/src/gallium/drivers/svga/svga_resource_buffer.c b/src/gallium/drivers/svga/svga_resource_buffer.c index 9ecb97509c2..d91497cf19f 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, - unsigned usage, + enum pipe_resource_usage usage, const struct pipe_box *box, struct pipe_transfer **ptransfer) { diff --git a/src/gallium/drivers/svga/svga_screen_cache.c b/src/gallium/drivers/svga/svga_screen_cache.c index 321c564e7f5..eaa589c4c26 100644 --- a/src/gallium/drivers/svga/svga_screen_cache.c +++ b/src/gallium/drivers/svga/svga_screen_cache.c @@ -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; diff --git a/src/gallium/drivers/svga/svga_screen_cache.h b/src/gallium/drivers/svga/svga_screen_cache.h index 424eb2c5ae1..05d8c56d83c 100644 --- a/src/gallium/drivers/svga/svga_screen_cache.h +++ b/src/gallium/drivers/svga/svga_screen_cache.h @@ -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