From 363049160da54f4aafe88f99bb2140a9bfed142b Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sun, 6 Jan 2002 03:54:12 +0000 Subject: Another vertex program checkpoint: clean-up of vertex attribute storage in vertex_buffer. Improved vertex program pipeline stage such that output registers can be processed in a loop. Getting closer to where we need to be in order to implement performance optimizations... --- src/mesa/tnl/t_context.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/mesa/tnl/t_context.h') diff --git a/src/mesa/tnl/t_context.h b/src/mesa/tnl/t_context.h index cd435d89c4e..64abe88bb7b 100644 --- a/src/mesa/tnl/t_context.h +++ b/src/mesa/tnl/t_context.h @@ -1,4 +1,4 @@ -/* $Id: t_context.h,v 1.35 2002/01/05 20:51:13 brianp Exp $ */ +/* $Id: t_context.h,v 1.36 2002/01/06 03:54:12 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -254,7 +254,6 @@ typedef struct vertex_buffer GLuint FirstPrimitive; /* usually zero */ /* Pointers to current data. - * XXX Replace ObjPtr, NormalPtr, TexCoordPtr, etc with AttribPtr[] arrays. */ GLuint *Elts; /* VERT_ELT */ GLvector4f *ObjPtr; /* VERT_OBJ_BIT */ @@ -270,13 +269,15 @@ typedef struct vertex_buffer GLvector1ui *IndexPtr[2]; /* VERT_INDEX_BIT */ struct gl_client_array *ColorPtr[2]; /* VERT_COLOR0_BIT */ struct gl_client_array *SecondaryColorPtr[2];/* VERT_COLOR1_BIT */ - GLvector1f *PointSizePtr; /* VERT_POINT_SIZE */ + GLvector4f *PointSizePtr; /* VERT_POINT_SIZE */ + GLvector4f *FogCoordPtr; /* VERT_FOG_BIT */ GLmaterial (*Material)[2]; /* VERT_MATERIAL, optional */ GLuint *MaterialMask; /* VERT_MATERIAL, optional */ GLuint *Flag; /* VERT_* flags, optional */ GLuint *Primitive; /* GL_(mode)|PRIM_* flags */ GLuint *PrimitiveLength; /* integers */ + /* Inputs to the vertex program stage */ GLvector4f *AttribPtr[VERT_ATTRIB_MAX]; /* GL_NV_vertex_program */ GLuint importable_data; -- cgit v1.2.3