summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_context.h
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2011-01-29 13:58:02 +0100
committerMarek Olšák <maraeo@gmail.com>2011-01-30 03:29:48 +0100
commit8d0a540020f6389ca5efcd0e1fbef45a4a1f5b6a (patch)
tree54070b8a3580e174536d742a6a273a0add5b6cb1 /src/gallium/drivers/r300/r300_context.h
parent77900843b42d9672c6b10f49c177a172041f6a8d (diff)
downloadexternal_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_context.h')
-rw-r--r--src/gallium/drivers/r300/r300_context.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_context.h b/src/gallium/drivers/r300/r300_context.h
index 57ecfb1..430a0dd 100644
--- a/src/gallium/drivers/r300/r300_context.h
+++ b/src/gallium/drivers/r300/r300_context.h
@@ -445,6 +445,7 @@ struct r300_translate_context {
/* Saved and new vertex element state. */
void *saved_velems, *new_velems;
+ unsigned vb_slot;
};
struct r300_context {
@@ -560,8 +561,9 @@ struct r300_context {
/* May contain user buffers. */
struct pipe_vertex_buffer vertex_buffer[PIPE_MAX_ATTRIBS];
/* Contains only non-user buffers. */
- struct pipe_resource *valid_vertex_buffer[PIPE_MAX_ATTRIBS];
+ struct pipe_resource *real_vertex_buffer[PIPE_MAX_ATTRIBS];
int vertex_buffer_count;
+ int real_vertex_buffer_count; /* with the translated buffer. */
int vertex_buffer_max_index;
boolean any_user_vbs;
/* Vertex elements for Gallium. */