diff options
author | Henri Verbeet <hverbeet@gmail.com> | 2011-02-07 15:22:07 +0100 |
---|---|---|
committer | Henri Verbeet <hverbeet@gmail.com> | 2011-02-07 15:22:07 +0100 |
commit | b9fd1a1e4b2121225195056ea1b679d62c399ddb (patch) | |
tree | b985110596d8111f26206e577a55515169c8c668 /src/gallium/drivers/r600/r600_state_common.c | |
parent | 7687eabaa0470261e059a2d6502628fffd209345 (diff) |
r600g: Remove vs_resource and ps_resource from the pipe context.
These are practically unused, only the vs_resource array is being abused for
fetch shader resources.
Diffstat (limited to 'src/gallium/drivers/r600/r600_state_common.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_state_common.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gallium/drivers/r600/r600_state_common.c b/src/gallium/drivers/r600/r600_state_common.c index 3a95946571..b17686d775 100644 --- a/src/gallium/drivers/r600/r600_state_common.c +++ b/src/gallium/drivers/r600/r600_state_common.c @@ -365,18 +365,18 @@ static void r600_vertex_buffer_update(struct r600_pipe_context *rctx) struct r600_pipe_state *rstate; struct r600_resource *rbuffer; struct pipe_vertex_buffer *vertex_buffer; - unsigned i, offset; + unsigned i, count, offset; if (rctx->vertex_elements->vbuffer_need_offset) { /* one resource per vertex elements */ - rctx->nvs_resource = rctx->vertex_elements->count; + count = rctx->vertex_elements->count; } else { /* bind vertex buffer once */ - rctx->nvs_resource = rctx->vbuf_mgr->nr_real_vertex_buffers; + count = rctx->vbuf_mgr->nr_real_vertex_buffers; } - for (i = 0 ; i < rctx->nvs_resource; i++) { - rstate = &rctx->vs_resource[i]; + for (i = 0 ; i < count; i++) { + rstate = &rctx->fs_resource[i]; rstate->id = R600_PIPE_STATE_RESOURCE; rstate->nregs = 0; |