summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-05-25 17:13:23 -0600
committerBrian Paul <[email protected]>2016-05-26 17:44:18 -0600
commit45078e8890a6709390007d0fce8d6ed1be5ad5c0 (patch)
treebce09159a769925647997e04188bd0b206bd03e2 /src/gallium/drivers/svga
parentd21a309c6c00122b0562284d78fce5138fa2ad30 (diff)
svga: s/unsigned/enum pipe_resource_usage/ for buffer usage variables
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga')
-rw-r--r--src/gallium/drivers/svga/svga_resource_buffer.c2
-rw-r--r--src/gallium/drivers/svga/svga_screen_cache.c2
-rw-r--r--src/gallium/drivers/svga/svga_screen_cache.h2
3 files changed, 3 insertions, 3 deletions
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