summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/savage/savagecontext.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers/dri/savage/savagecontext.h')
-rw-r--r--src/mesa/drivers/dri/savage/savagecontext.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/savage/savagecontext.h b/src/mesa/drivers/dri/savage/savagecontext.h
index 5a66bdfa4ef..37aa7d33489 100644
--- a/src/mesa/drivers/dri/savage/savagecontext.h
+++ b/src/mesa/drivers/dri/savage/savagecontext.h
@@ -141,6 +141,11 @@ struct savage_cmdbuf_t {
drm_savage_cmd_header_t *write; /* append stuff here */
};
+struct savage_elt_t {
+ GLuint n; /* number of elts currently allocated */
+ drm_savage_cmd_header_t *cmd; /* the indexed drawing command */
+};
+
struct savage_context_t {
GLint refcount;
@@ -173,6 +178,10 @@ struct savage_context_t {
/* Command buffer */
struct savage_cmdbuf_t cmdBuf;
+ /* Elt book-keeping */
+ struct savage_elt_t elts;
+ GLint firstElt;
+
/* Vertex buffers */
struct savage_vtxbuf_t dmaVtxBuf, clientVtxBuf;
struct savage_vtxbuf_t *vtxBuf;