summaryrefslogtreecommitdiff
path: root/src/mesa/swrast_setup
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-01-06 03:54:12 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-01-06 03:54:12 +0000
commit363049160da54f4aafe88f99bb2140a9bfed142b (patch)
treef189ec97cdd323e6e38958d9dc4b62c778c9868e /src/mesa/swrast_setup
parente2053d16901732f4947c702cdc5ef72993d8d130 (diff)
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...
Diffstat (limited to 'src/mesa/swrast_setup')
-rw-r--r--src/mesa/swrast_setup/ss_vbtmp.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mesa/swrast_setup/ss_vbtmp.h b/src/mesa/swrast_setup/ss_vbtmp.h
index 8e6c41ab4d..01382d3354 100644
--- a/src/mesa/swrast_setup/ss_vbtmp.h
+++ b/src/mesa/swrast_setup/ss_vbtmp.h
@@ -1,10 +1,10 @@
-/* $Id: ss_vbtmp.h,v 1.19 2002/01/05 20:51:12 brianp Exp $ */
+/* $Id: ss_vbtmp.h,v 1.20 2002/01/06 03:54:12 brianp Exp $ */
/*
* Mesa 3-D graphics library
- * Version: 3.5
+ * Version: 4.1
*
- * Copyright (C) 1999-2001 Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2002 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -77,8 +77,8 @@ static void TAG(emit)(GLcontext *ctx, GLuint start, GLuint end,
proj_stride = VB->NdcPtr->stride;
if (IND & FOG) {
- fog = (GLfloat *) VB->AttribPtr[VERT_ATTRIB_FOG]->data;
- fog_stride = VB->AttribPtr[VERT_ATTRIB_FOG]->stride;
+ fog = (GLfloat *) VB->FogCoordPtr->data;
+ fog_stride = VB->FogCoordPtr->stride;
}
if (IND & COLOR) {
if (VB->ColorPtr[0]->Type != CHAN_TYPE)
@@ -99,7 +99,7 @@ static void TAG(emit)(GLcontext *ctx, GLuint start, GLuint end,
index_stride = VB->IndexPtr[0]->stride;
}
if (IND & POINT) {
- pointSize = VB->PointSizePtr->data;
+ pointSize = (GLfloat *) VB->PointSizePtr->data;
pointSize_stride = VB->PointSizePtr->stride;
}
@@ -215,6 +215,7 @@ static void TAG(interp)( GLcontext *ctx,
INTERP_UI( t, dst->index, out->index, in->index );
}
+ /* XXX Point size interpolation??? */
if (IND & POINT) {
INTERP_F( t, dst->pointSize, out->pointSize, in->pointSize );
}