diff options
author | José Fonseca <[email protected]> | 2007-11-05 18:04:35 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2007-11-06 14:49:38 +0000 |
commit | fa1a66d7fc4fd7854de7958a48e4992edd154489 (patch) | |
tree | ce48a896ebbef8b09ee363774cdfdf86dfb52da6 /src/mesa/pipe/i915simple | |
parent | 4f79dbd5aa6b8a955ac9dcc43cf0852acd89a320 (diff) |
Supply buffer usage hints to winsys.
Winsys driver needs some hints in order to allocate the appropriate kind of
memory for the buffer.
Diffstat (limited to 'src/mesa/pipe/i915simple')
-rw-r--r-- | src/mesa/pipe/i915simple/i915_prim_vbuf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/pipe/i915simple/i915_prim_vbuf.c b/src/mesa/pipe/i915simple/i915_prim_vbuf.c index 3632adce790..75ca6d6e5ef 100644 --- a/src/mesa/pipe/i915simple/i915_prim_vbuf.c +++ b/src/mesa/pipe/i915simple/i915_prim_vbuf.c @@ -376,7 +376,9 @@ static void vbuf_flush_elements( struct draw_stage *stage ) /* FIXME: handle failure */ if(!vbuf->buf) vbuf->buf = winsys->buffer_create(winsys, 64); - winsys->buffer_data(winsys, vbuf->buf, VBUF_SIZE, NULL); + winsys->buffer_data( winsys, vbuf->buf, + VBUF_SIZE, NULL, + PIPE_BUFFER_USAGE_VERTEX ); vbuf->vertex_map = winsys->buffer_map(winsys, vbuf->buf, PIPE_BUFFER_FLAG_WRITE ); |