summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/svga_context.c
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2015-12-19 17:54:31 +0100
committerMarek Olšák <marek.olsak@amd.com>2016-01-02 15:15:45 +0100
commitecb2da1559bcb9a9eec7ac224c8ff47b026c95ff (patch)
tree33acc93ea88f258e8941cb9270f1dfaa5195cf14 /src/gallium/drivers/svga/svga_context.c
parent37d0aea772a39f9ae7fe3d791e23c1be03ccf9de (diff)
downloadexternal_mesa3d-ecb2da1559bcb9a9eec7ac224c8ff47b026c95ff.zip
external_mesa3d-ecb2da1559bcb9a9eec7ac224c8ff47b026c95ff.tar.gz
external_mesa3d-ecb2da1559bcb9a9eec7ac224c8ff47b026c95ff.tar.bz2
u_upload_mgr: allow specifying PIPE_USAGE_* for the upload buffer
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Diffstat (limited to 'src/gallium/drivers/svga/svga_context.c')
-rw-r--r--src/gallium/drivers/svga/svga_context.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_context.c b/src/gallium/drivers/svga/svga_context.c
index 460804c..b10eb45 100644
--- a/src/gallium/drivers/svga/svga_context.c
+++ b/src/gallium/drivers/svga/svga_context.c
@@ -219,7 +219,8 @@ struct pipe_context *svga_context_create(struct pipe_screen *screen,
svga->const0_upload = u_upload_create(&svga->pipe,
CONST0_UPLOAD_DEFAULT_SIZE,
- PIPE_BIND_CONSTANT_BUFFER);
+ PIPE_BIND_CONSTANT_BUFFER,
+ PIPE_USAGE_STREAM);
if (!svga->const0_upload)
goto cleanup;