-/* $Id: t_imm_api.c,v 1.20 2001/12/14 02:51:44 brianp Exp $ */
+/* $Id: t_imm_api.c,v 1.21 2001/12/15 02:13:32 brianp Exp $ */
/*
* Mesa 3-D graphics library
#include "state.h"
#include "colormac.h"
#include "macros.h"
+#include "vtxfmt.h"
#include "t_context.h"
#include "t_imm_api.h"
_tnl_vprog_vtxfmt_init(ctx);
else
_tnl_imm_vtxfmt_init(ctx);
- _mesa_init_exec_vtxfmt(ctx);
+ /* XXX this should not be done here - inefficient */
+ _mesa_install_exec_vtxfmt(ctx, &(TNL_CONTEXT(ctx)->vtxfmt));
/* if only a very few slots left, might as well flush now
*/
{
GLvertexformat *vfmt = &(TNL_CONTEXT(ctx)->vtxfmt);
- printf("%s()\n", __FUNCTION__);
-
/* All begin/end operations are handled by this vertex format:
*/
vfmt->ArrayElement = _tnl_ArrayElement;
-/* $Id: t_imm_exec.c,v 1.31 2001/12/14 02:51:45 brianp Exp $ */
+/* $Id: t_imm_exec.c,v 1.32 2001/12/15 02:13:32 brianp Exp $ */
/*
* Mesa 3-D graphics library
{
TNLcontext *tnl = TNL_CONTEXT(ctx);
- printf("enter %s()\n", __FUNCTION__);
_tnl_compute_orflag( IM, IM->Start );
_tnl_copy_immediate_vertices( ctx, IM );
_tnl_get_exec_copy_verts( ctx, IM );
if (tnl->pipeline.build_state_changes)
_tnl_validate_pipeline( ctx );
- printf(" CopyStart %d == Count %d ?\n", IM->CopyStart, IM->Count);
if (IM->CopyStart == IM->Count) {
exec_empty_cassette( ctx, IM );
}
if (ctx->Driver.CurrentExecPrimitive == GL_POLYGON+1)
ctx->Driver.NeedFlush &= ~FLUSH_STORED_VERTICES;
- printf("leave %s()\n", __FUNCTION__);
}
-/* $Id: t_imm_fixup.c,v 1.29 2001/12/14 02:51:45 brianp Exp $ */
+/* $Id: t_imm_fixup.c,v 1.30 2001/12/15 02:13:32 brianp Exp $ */
/*
* Mesa 3-D graphics library
}
next->CopyStart = next->Start - count;
- printf("%s() CopyStart = %d\n", __FUNCTION__, next->CopyStart);
if ((prev->CopyOrFlag & VERT_DATA) == VERT_ELT &&
ctx->Array.LockCount &&
-/* $Id: t_pipeline.c,v 1.20 2001/12/14 02:51:45 brianp Exp $ */
+/* $Id: t_pipeline.c,v 1.21 2001/12/15 02:13:32 brianp Exp $ */
/*
* Mesa 3-D graphics library
pipe->run_state_changes = 0;
pipe->run_input_changes = 0;
- printf("%s()\n", __FUNCTION__);
-
/* Done elsewhere.
*/
ASSERT(pipe->build_state_changes == 0);
-/* $Id: t_vb_program.c,v 1.1 2001/12/14 02:51:45 brianp Exp $ */
+/* $Id: t_vb_program.c,v 1.2 2001/12/15 02:13:32 brianp Exp $ */
/*
* Mesa 3-D graphics library
VB->AttribPtr[3]->data[i][1],
VB->AttribPtr[3]->data[i][2],
VB->AttribPtr[3]->data[i][3]);
+ printf(" normal: %f, %f, %f, %f\n",
+ VB->AttribPtr[2]->data[i][0],
+ VB->AttribPtr[2]->data[i][1],
+ VB->AttribPtr[2]->data[i][2],
+ VB->AttribPtr[2]->data[i][3]);
+
/* load the input attribute registers */
for (attr = 0; attr < 16; attr++) {
static void check_vp( GLcontext *ctx, struct gl_pipeline_stage *stage )
{
stage->active = ctx->VertexProgram.Enabled;
- printf("check_vp() active = %d\n", stage->active);
+
if (stage->active) {
#if 000
if (stage->privatePtr)