diff options
author | Marek Olšák <[email protected]> | 2012-03-31 05:32:25 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-04-24 01:39:21 +0200 |
commit | 2d03d4f4a365d7af5f4dac20700009152eba1682 (patch) | |
tree | 38295ad6418c93f609d0d194bf94988d0d8fe254 /src/gallium/drivers/r300/r300_emit.c | |
parent | 31714ea4d5a20285f398286fe45b53d0609926dd (diff) |
u_vbuf: override set_vertex_buffers
Diffstat (limited to 'src/gallium/drivers/r300/r300_emit.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_emit.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gallium/drivers/r300/r300_emit.c b/src/gallium/drivers/r300/r300_emit.c index e4afe786d65..467339f6a62 100644 --- a/src/gallium/drivers/r300/r300_emit.c +++ b/src/gallium/drivers/r300/r300_emit.c @@ -823,7 +823,7 @@ void r300_emit_textures_state(struct r300_context *r300, void r300_emit_vertex_arrays(struct r300_context* r300, int offset, boolean indexed, int instance_id) { - struct pipe_vertex_buffer *vbuf = r300->vbuf_mgr->real_vertex_buffer; + struct pipe_vertex_buffer *vbuf = r300->vertex_buffer; struct pipe_vertex_element *velem = r300->velems->velem; struct r300_resource *buf; int i; @@ -1223,10 +1223,11 @@ validate: r300_resource(r300->vbo)->domain); /* ...vertex buffers for HWTCL path... */ if (do_validate_vertex_buffers && r300->vertex_arrays_dirty) { - struct pipe_vertex_buffer *vbuf = r300->vbuf_mgr->real_vertex_buffer; - struct pipe_vertex_buffer *last = r300->vbuf_mgr->real_vertex_buffer + - r300->vbuf_mgr->nr_real_vertex_buffers; + struct pipe_vertex_buffer *vbuf = r300->vertex_buffer; + struct pipe_vertex_buffer *last = r300->vertex_buffer + + r300->nr_vertex_buffers; struct pipe_resource *buf; + for (; vbuf != last; vbuf++) { buf = vbuf->buffer; if (!buf) |