aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r300/r300_context.h
diff options
context:
space:
mode:
authorMaciej Cencora <[email protected]>2009-05-30 20:38:29 +0200
committerDave Airlie <[email protected]>2009-06-07 16:39:33 +1000
commitfd80128e15c6393fa85088577ab2ca320c6cb8ae (patch)
tree5b2f5159155df1b18e9f44fd3ee9dd4905607bd3 /src/mesa/drivers/dri/r300/r300_context.h
parente98082997c8cfe3bf9c1c1cdc40c23ee897d1007 (diff)
r300: add hw accelerated support for different vertex data formats
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_context.h')
-rw-r--r--src/mesa/drivers/dri/r300/r300_context.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_context.h b/src/mesa/drivers/dri/r300/r300_context.h
index 7694fe4862f..11cfb55a9b5 100644
--- a/src/mesa/drivers/dri/r300/r300_context.h
+++ b/src/mesa/drivers/dri/r300/r300_context.h
@@ -617,6 +617,13 @@ struct r300_vertex_buffer {
GLubyte num_attribs;
};
+struct r300_index_buffer {
+ GLvoid *ptr;
+ GLboolean is_32bit;
+ GLboolean free_needed;
+ GLuint count;
+};
+
/**
* \brief R300 context structure.
*/
@@ -644,6 +651,7 @@ struct r300_context {
struct r300_swtcl_info swtcl;
struct r300_vertex_buffer vbuf;
+ struct r300_index_buffer ind_buf;
GLboolean vap_flush_needed;
uint32_t fallback;
@@ -666,6 +674,8 @@ extern int r300VertexProgUpdateParams(GLcontext * ctx,
extern void r300InitShaderFunctions(r300ContextPtr r300);
+extern void r300InitDraw(GLcontext *ctx);
+
#define r300PackFloat32 radeonPackFloat32
#define r300PackFloat24 radeonPackFloat24