diff options
author | Christoph Bumiller <[email protected]> | 2012-05-22 15:33:12 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2012-05-25 22:42:54 +0200 |
commit | 384ef28cb376eb53c43167f0e8f0f7c3fec7d288 (patch) | |
tree | 2ae55147544d0333165e06ec92019a6fc0c1e4b4 /src/gallium/drivers/nv30/nv30_state.c | |
parent | 704eac09166aa6dc4c1aa82f8d0938c4060e51f4 (diff) |
nv30: handle user index buffers
Diffstat (limited to 'src/gallium/drivers/nv30/nv30_state.c')
-rw-r--r-- | src/gallium/drivers/nv30/nv30_state.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv30/nv30_state.c b/src/gallium/drivers/nv30/nv30_state.c index f65c8b71fdd..25755ba471d 100644 --- a/src/gallium/drivers/nv30/nv30_state.c +++ b/src/gallium/drivers/nv30/nv30_state.c @@ -420,9 +420,12 @@ nv30_set_index_buffer(struct pipe_context *pipe, if (ib) { pipe_resource_reference(&nv30->idxbuf.buffer, ib->buffer); - memcpy(&nv30->idxbuf, ib, sizeof(nv30->idxbuf)); + nv30->idxbuf.index_size = ib->index_size; + nv30->idxbuf.offset = ib->offset; + nv30->idxbuf.user_buffer = ib->user_buffer; } else { pipe_resource_reference(&nv30->idxbuf.buffer, NULL); + nv30->idxbuf.user_buffer = NULL; } } |