diff options
author | Marek Olšák <maraeo@gmail.com> | 2011-01-29 13:58:02 +0100 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2011-01-30 03:29:48 +0100 |
commit | 8d0a540020f6389ca5efcd0e1fbef45a4a1f5b6a (patch) | |
tree | 54070b8a3580e174536d742a6a273a0add5b6cb1 /src/gallium/drivers/r300/r300_emit.c | |
parent | 77900843b42d9672c6b10f49c177a172041f6a8d (diff) | |
download | external_mesa3d-8d0a540020f6389ca5efcd0e1fbef45a4a1f5b6a.zip external_mesa3d-8d0a540020f6389ca5efcd0e1fbef45a4a1f5b6a.tar.gz external_mesa3d-8d0a540020f6389ca5efcd0e1fbef45a4a1f5b6a.tar.bz2 |
r300g: rework vertex format fallback
1) Only translate the [min_index, max_index] range.
2) Upload translated vertices via the uploader.
3) Rename valid_vertex_buffer[] to real_vertex_buffer[]
Diffstat (limited to 'src/gallium/drivers/r300/r300_emit.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_emit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/r300/r300_emit.c b/src/gallium/drivers/r300/r300_emit.c index 2157cb3..34f87f7 100644 --- a/src/gallium/drivers/r300/r300_emit.c +++ b/src/gallium/drivers/r300/r300_emit.c @@ -847,7 +847,7 @@ static void r300_update_vertex_arrays_cb(struct r300_context *r300, unsigned pac void r300_emit_vertex_arrays(struct r300_context* r300, int offset, boolean indexed) { struct pipe_vertex_buffer *vbuf = r300->vertex_buffer; - struct pipe_resource **valid_vbuf = r300->valid_vertex_buffer; + struct pipe_resource **valid_vbuf = r300->real_vertex_buffer; struct pipe_vertex_element *velem = r300->velems->velem; struct r300_buffer *buf; int i; @@ -1227,9 +1227,9 @@ validate: r300_buffer(r300->vbo)->domain, 0); /* ...vertex buffers for HWTCL path... */ if (do_validate_vertex_buffers) { - struct pipe_resource **buf = r300->valid_vertex_buffer; - struct pipe_resource **last = r300->valid_vertex_buffer + - r300->vertex_buffer_count; + struct pipe_resource **buf = r300->real_vertex_buffer; + struct pipe_resource **last = r300->real_vertex_buffer + + r300->real_vertex_buffer_count; for (; buf != last; buf++) { if (!*buf) continue; |