diff options
author | Brian <[email protected]> | 2008-04-08 21:14:58 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2008-04-08 21:20:10 -0600 |
commit | 1f888abf16ce4de00231505b8d1bc68426b04e8f (patch) | |
tree | 51636dca1c41a9e8906f5f51cbd99a61f804d89b /src/gallium/drivers/i915simple/i915_state.c | |
parent | 28cf8c8fdcbd2817b93f27cad2bba3b4fb8aecf5 (diff) |
i915: keep track of num_vertex_attribs/buffers for shorter loops
Diffstat (limited to 'src/gallium/drivers/i915simple/i915_state.c')
-rw-r--r-- | src/gallium/drivers/i915simple/i915_state.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/i915simple/i915_state.c b/src/gallium/drivers/i915simple/i915_state.c index 4404bc45901..24d31ad740e 100644 --- a/src/gallium/drivers/i915simple/i915_state.c +++ b/src/gallium/drivers/i915simple/i915_state.c @@ -694,6 +694,8 @@ static void i915_set_vertex_buffers(struct pipe_context *pipe, struct i915_context *i915 = i915_context(pipe); memcpy(i915->vertex_buffer, buffers, count * sizeof(buffers[0])); + i915->num_vertex_buffers = count; + /* pass-through to draw module */ draw_set_vertex_buffers(i915->draw, count, buffers); } @@ -703,6 +705,7 @@ static void i915_set_vertex_elements(struct pipe_context *pipe, const struct pipe_vertex_element *elements) { struct i915_context *i915 = i915_context(pipe); + i915->num_vertex_elements = count; /* pass-through to draw module */ draw_set_vertex_elements(i915->draw, count, elements); } |