summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_context.h
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-09-20 13:42:37 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-09-20 13:43:23 -0600
commit086734502a614e7778533018846ee66a66df9821 (patch)
tree80fc84b09af1915693bb6cf2c8596fb61a6cb1b4 /src/mesa/state_tracker/st_context.h
parent745f0cbe0528ac925096f5c1b85de7280fee7fbc (diff)
Checkpoint: vertex attribute clean-up.
Remove/disable the attrib/slot mapping arrays in a few places. Work in progress...
Diffstat (limited to 'src/mesa/state_tracker/st_context.h')
-rw-r--r--src/mesa/state_tracker/st_context.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_context.h b/src/mesa/state_tracker/st_context.h
index 8a57227c84..55a857f46d 100644
--- a/src/mesa/state_tracker/st_context.h
+++ b/src/mesa/state_tracker/st_context.h
@@ -119,9 +119,17 @@ struct st_context
GLfloat polygon_offset_scale; /* ?? */
- struct st_vertex_program *vp;
- struct st_fragment_program *fp;
+ /** Mapping from VERT_ATTRIB_x to post-transformed vertex slot */
+ GLuint vertex_attrib_to_slot[VERT_RESULT_MAX];
+ struct st_vertex_program *vp; /**< Currently bound vertex program */
+ struct st_fragment_program *fp; /**< Currently bound fragment program */
+
+ /**
+ * Buffer object which stores the ctx->Current.Attrib[] values.
+ * Used for vertex array drawing when we we need an attribute for
+ * which there's no enabled array.
+ */
struct pipe_buffer_handle *default_attrib_buffer;
struct cso_cache *cache;