summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_emit.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-01-29 13:58:02 +0100
committerMarek Olšák <[email protected]>2011-01-30 03:29:48 +0100
commit8d0a540020f6389ca5efcd0e1fbef45a4a1f5b6a (patch)
tree54070b8a3580e174536d742a6a273a0add5b6cb1 /src/gallium/drivers/r300/r300_emit.c
parent77900843b42d9672c6b10f49c177a172041f6a8d (diff)
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.c8
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 2157cb3ede7..34f87f74d3e 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;