summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r600/r600_pipe.c
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2011-02-08 15:20:11 +0100
committerMarek Olšák <maraeo@gmail.com>2011-02-08 15:20:11 +0100
commit1ee71bdc8a8471357cee6a1cf2fbaac6a70bb86c (patch)
treee8175d89d846ae2f7e9f7ed2831a3da72d99e3a8 /src/gallium/drivers/r600/r600_pipe.c
parent7628c4ecb6e87dbe900d1d68feca33626c8fbfc0 (diff)
u_vbuf_mgr: add a way to specify the BIND flag for the upload buffer
Diffstat (limited to 'src/gallium/drivers/r600/r600_pipe.c')
-rw-r--r--src/gallium/drivers/r600/r600_pipe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c
index ad609fbdfa..9826bf42ac 100644
--- a/src/gallium/drivers/r600/r600_pipe.c
+++ b/src/gallium/drivers/r600/r600_pipe.c
@@ -166,6 +166,7 @@ static struct pipe_context *r600_create_context(struct pipe_screen *screen, void
}
rctx->vbuf_mgr = u_vbuf_mgr_create(&rctx->context, 1024 * 1024, 16,
+ PIPE_BIND_VERTEX_BUFFER,
U_VERTEX_FETCH_BYTE_ALIGNED);
if (!rctx->vbuf_mgr) {
r600_destroy_context(&rctx->context);