diff options
author | Marek Olšák <[email protected]> | 2015-12-19 17:54:31 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-01-02 15:15:45 +0100 |
commit | ecb2da1559bcb9a9eec7ac224c8ff47b026c95ff (patch) | |
tree | 33acc93ea88f258e8941cb9270f1dfaa5195cf14 /src/gallium/auxiliary/vl | |
parent | 37d0aea772a39f9ae7fe3d791e23c1be03ccf9de (diff) |
u_upload_mgr: allow specifying PIPE_USAGE_* for the upload buffer
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/vl')
-rw-r--r-- | src/gallium/auxiliary/vl/vl_compositor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/vl/vl_compositor.c b/src/gallium/auxiliary/vl/vl_compositor.c index 10ac1712f19..77688f0f99f 100644 --- a/src/gallium/auxiliary/vl/vl_compositor.c +++ b/src/gallium/auxiliary/vl/vl_compositor.c @@ -1091,7 +1091,8 @@ vl_compositor_init(struct vl_compositor *c, struct pipe_context *pipe) c->pipe = pipe; - c->upload = u_upload_create(pipe, 128 * 1024, PIPE_BIND_VERTEX_BUFFER); + c->upload = u_upload_create(pipe, 128 * 1024, PIPE_BIND_VERTEX_BUFFER, + PIPE_USAGE_STREAM); if (!c->upload) return false; |