diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2003-03-04 17:29:55 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2003-03-04 17:29:55 +0000 |
commit | 7b7af467dd95b0e7c30dd3ba5888d86840a5fd6c (patch) | |
tree | 0d77f39efd07835dec6f68e87e787c25de128f43 /src/mesa/drivers/dri/radeon/radeon_vtxfmt.h | |
parent | 3101d43a76a7db7a3a1a178eeab116fb574df1b9 (diff) |
Restore ability to build full driver.embedded-1-20030305
Add config options to choose between full/subset driver, and fbdev vs. DRI
windowing systems.
Diffstat (limited to 'src/mesa/drivers/dri/radeon/radeon_vtxfmt.h')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_vtxfmt.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_vtxfmt.h b/src/mesa/drivers/dri/radeon/radeon_vtxfmt.h index 4440f289bf9..d8e5cc667b7 100644 --- a/src/mesa/drivers/dri/radeon/radeon_vtxfmt.h +++ b/src/mesa/drivers/dri/radeon/radeon_vtxfmt.h @@ -140,6 +140,36 @@ struct radeon_vbinfo { GLvertexformat vtxfmt; }; +struct radeon_vb { + /* Keep these first: referenced from codegen templates: + */ + GLint counter, initial_counter; + GLint *dmaptr; + void (*notify)( void ); + GLint vertex_size; + + /* A maximum total of 15 elements per vertex: 3 floats for position, 3 + * floats for normal, 4 floats for color, 4 bytes for secondary color, + * 2 floats for each texture unit (4 floats total). + * + * As soon as the 3rd TMU is supported or cube maps (or 3D textures) are + * supported, this value will grow. + * + * The position data is never actually stored here, so 3 elements could be + * trimmed out of the buffer. + */ + union { float f; int i; radeon_color_t color; } vertex[15]; + + GLfloat *normalptr; + GLfloat *floatcolorptr; + radeon_color_t *colorptr; + GLfloat *floatspecptr; + radeon_color_t *specptr; + GLfloat *texcoordptr[2]; + + GLcontext *context; /* current context : Single thread only! */ +}; + extern struct radeon_vb vb; |