/*
* Mesa 3-D graphics library
- * Version: 6.1
+ * Version: 6.2
*
* Copyright (C) 1999-2004 Brian Paul All Rights Reserved.
*
#include "arbprogparse.h"
+/**
+ * XXX this is probably redundant. We've already got code like this
+ * in the nvvertparse.c file. Combine/clean-up someday.
+ */
static GLvoid
debug_vp_inst(GLint num, struct vp_instruction *vp)
{
case VP_OPCODE_SWZ:
fprintf(stderr, "VP_OPCODE_SWZ"); break;
+ case VP_OPCODE_PRINT:
+ fprintf(stderr, "VP_OPCODE_PRINT"); break;
+
case VP_OPCODE_END:
fprintf(stderr, "VP_OPCODE_END"); break;
}
{
GLuint retval;
struct arb_program ap;
+ (void) target;
/* set the program target before parsing */
ap.Base.Target = GL_VERTEX_PROGRAM_ARB;
program->OutputsWritten = ap.OutputsWritten;
program->Parameters = ap.Parameters;
- /* Eh.. we parsed something that wasn't a vertex program. doh! */
- /* this wont happen any more */
-/*
- if (ap.Base.Target != GL_VERTEX_PROGRAM_ARB)
- {
- program->Instructions = (struct vp_instruction *) _mesa_malloc (
- sizeof(struct vp_instruction) );
- program->Instructions[0].Opcode = VP_OPCODE_END;
-
- _mesa_error (ctx, GL_INVALID_OPERATION, "Parsed a non-vertex program as a vertex program");
- return;
- }
-*/
-
program->Instructions = ap.VPInstructions;
#if DEBUG_VP