diff options
author | Felix Kuehling <[email protected]> | 2005-01-20 13:59:49 +0000 |
---|---|---|
committer | Felix Kuehling <[email protected]> | 2005-01-20 13:59:49 +0000 |
commit | edb9a165c14bd90938340a74a636ac5f65ac4c35 (patch) | |
tree | 990529c998c91f37a9bfb92b6611cb90d6d575c0 /src/mesa/drivers/dri/savage/savagecontext.h | |
parent | ddfa61ee194b9d4ec88d499c71cd6810e7f6a022 (diff) |
Added support for ELTS to the _savage_render_stage. Requires at least
Savage DRM version 2.2.0. Otherwise the render stage is disabled.
Diffstat (limited to 'src/mesa/drivers/dri/savage/savagecontext.h')
-rw-r--r-- | src/mesa/drivers/dri/savage/savagecontext.h | 9 |
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; |