diff options
author | Brian <brian.paul@tungstengraphics.com> | 2008-04-08 21:18:21 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2008-04-08 21:20:10 -0600 |
commit | 7e57a9e8bba322b2ba8a02eec4b79c90e7052738 (patch) | |
tree | fdd3f59a43988ac33426bf8faa702c022e5778a7 /src/gallium/drivers/cell/ppu/cell_state_vertex.c | |
parent | 1f888abf16ce4de00231505b8d1bc68426b04e8f (diff) |
cell: keep track of num_vertex_attribs/buffers for shorter loops
Diffstat (limited to 'src/gallium/drivers/cell/ppu/cell_state_vertex.c')
-rw-r--r-- | src/gallium/drivers/cell/ppu/cell_state_vertex.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/cell/ppu/cell_state_vertex.c b/src/gallium/drivers/cell/ppu/cell_state_vertex.c index 6c83b8dc72..114684c2a3 100644 --- a/src/gallium/drivers/cell/ppu/cell_state_vertex.c +++ b/src/gallium/drivers/cell/ppu/cell_state_vertex.c @@ -45,6 +45,7 @@ cell_set_vertex_elements(struct pipe_context *pipe, assert(count <= PIPE_MAX_ATTRIBS); memcpy(cell->vertex_element, elements, count * sizeof(elements[0])); + cell->num_vertex_elements = count; cell->dirty |= CELL_NEW_VERTEX; @@ -62,6 +63,7 @@ cell_set_vertex_buffers(struct pipe_context *pipe, assert(count <= PIPE_MAX_ATTRIBS); memcpy(cell->vertex_buffer, buffers, count * sizeof(buffers[0])); + cell->num_vertex_buffers = count; cell->dirty |= CELL_NEW_VERTEX; |