/*
 * This file is automatically generated from the Mesa internal type
 * definitions.  Do not edit directly.
 */

#ifndef __ASM_TYPES_H__
#define __ASM_TYPES_H__



/* =============================================================
 * Offsets for struct gl_context
 */


#define CTX_LIGHT_ENABLED           	12232
#define CTX_LIGHT_SHADE_MODEL       	12234
#define CTX_LIGHT_COLOR_MAT_FACE    	12238
#define CTX_LIGHT_COLOR_MAT_MODE    	12240
#define CTX_LIGHT_COLOR_MAT_MASK    	12244
#define CTX_LIGHT_COLOR_MAT_ENABLED 	12233
#define CTX_LIGHT_ENABLED_LIGHTS    	12252
#define CTX_LIGHT_NEED_VERTS        	12257
#define CTX_LIGHT_BASE_COLOR        	12260


/* =============================================================
 * Offsets for struct vertex_buffer
 */

#define VB_SIZE                	0
#define VB_COUNT               	4

#define VB_ELTS                	8
#define VB_OBJ_PTR             	112
#define VB_EYE_PTR             	16
#define VB_CLIP_PTR            	24
#define VB_PROJ_CLIP_PTR       	32
#define VB_CLIP_OR_MASK        	40
#define VB_CLIP_MASK           	48
#define VB_NORMAL_PTR          	120
#define VB_EDGE_FLAG           	64
#define VB_TEX0_COORD_PTR      	168
#define VB_TEX1_COORD_PTR      	176
#define VB_TEX2_COORD_PTR      	184
#define VB_TEX3_COORD_PTR      	192
#define VB_INDEX_PTR           	152
#define VB_COLOR_PTR           	128
#define VB_SECONDARY_COLOR_PTR 	136
#define VB_FOG_COORD_PTR       	144
#define VB_PRIMITIVE           	96


/*
 * Flags for struct vertex_buffer
 */

#define VERT_BIT_OBJ           	0x1
#define VERT_BIT_NORM          	0x2
#define VERT_BIT_RGBA          	0x4
#define VERT_BIT_SPEC_RGB      	0x8
#define VERT_BIT_FOG_COORD     	0x10
#define VERT_BIT_TEX0          	0x80
#define VERT_BIT_TEX1          	0x100
#define VERT_BIT_TEX2          	0x200
#define VERT_BIT_TEX3          	0x400


/* =============================================================
 * Offsets for GLvector4f
 */

#define V4F_DATA          	0
#define V4F_START         	8
#define V4F_COUNT         	16
#define V4F_STRIDE        	20
#define V4F_SIZE          	24
#define V4F_FLAGS         	28

/*
 * Flags for GLvector4f
 */

#define VEC_MALLOC        	0x10
#define VEC_NOT_WRITEABLE 	0x40
#define VEC_BAD_STRIDE    	0x100

#define VEC_SIZE_1        	0x1
#define VEC_SIZE_2        	0x3
#define VEC_SIZE_3        	0x7
#define VEC_SIZE_4        	0xf


/* =============================================================
 * Offsets for GLmatrix
 */

#define MATRIX_DATA   	0
#define MATRIX_INV    	8
#define MATRIX_FLAGS  	16
#define MATRIX_TYPE   	20


/* =============================================================
 * Offsets for struct gl_light
 */


#define LIGHT_AMBIENT           	0
#define LIGHT_DIFFUSE           	16
#define LIGHT_SPECULAR          	32
#define LIGHT_EYE_POSITION      	48
#define LIGHT_SPOT_DIRECTION    	64
#define LIGHT_SPOT_EXPONENT     	80
#define LIGHT_SPOT_CUTOFF       	84
#define LIGHT_COS_CUTOFF        	88
#define LIGHT_CONST_ATTEN       	92
#define LIGHT_LINEAR_ATTEN      	96
#define LIGHT_QUADRATIC_ATTEN   	100
#define LIGHT_ENABLED           	104

#define LIGHT_FLAGS             	108

#define LIGHT_POSITION          	112
#define LIGHT_VP_INF_NORM       	128
#define LIGHT_H_INF_NORM        	140
#define LIGHT_NORM_DIRECTION    	152
#define LIGHT_VP_INF_SPOT_ATTEN 	168

#define LIGHT_MAT_AMBIENT       	172
#define LIGHT_MAT_DIFFUSE       	196
#define LIGHT_MAT_SPECULAR      	220

#define SIZEOF_GL_LIGHT         	244

/*
 * Flags for struct gl_light
 */

#define LIGHT_SPOT              	0x1
#define LIGHT_LOCAL_VIEWER      	0x2
#define LIGHT_POSITIONAL        	0x4

#define LIGHT_NEED_VERTICES     	0x6


/* =============================================================
 * Offsets for struct gl_lightmodel
 */

#define LIGHT_MODEL_AMBIENT       	0
#define LIGHT_MODEL_LOCAL_VIEWER  	16
#define LIGHT_MODEL_TWO_SIDE      	17
#define LIGHT_MODEL_COLOR_CONTROL 	18


#endif /* __ASM_TYPES_H__ */
