remove unused 'element' parameter from _mesa_execute_program()
authorBrian <brian@nostromo.localnet.net>
Mon, 26 Feb 2007 01:23:37 +0000 (18:23 -0700)
committerBrian <brian@nostromo.localnet.net>
Mon, 26 Feb 2007 01:23:37 +0000 (18:23 -0700)
src/mesa/shader/prog_execute.c
src/mesa/shader/prog_execute.h
src/mesa/swrast/s_fragprog.c
src/mesa/tnl/t_vb_program.c

index 063d572428b38766159257b5f238006ab04dad32..0982e3e32272c968aa0502c0c25c41f75f28e320 100644 (file)
@@ -641,7 +641,7 @@ init_machine_deriv(GLcontext * ctx,
 GLboolean
 _mesa_execute_program(GLcontext * ctx,
                       const struct gl_program *program, GLuint maxInst,
-                      struct gl_program_machine *machine, GLuint element)
+                      struct gl_program_machine *machine)
 {
    const GLuint MAX_EXEC = 10000;
    GLint pc, total = 0;
index 1eb9e73d01abd211186810266508bc506ee57b9f..feda65fe03a14d27dda0a4b3012462858bf12c5b 100644 (file)
@@ -75,7 +75,7 @@ _mesa_get_program_register(GLcontext *ctx, enum register_file file,
 extern GLboolean
 _mesa_execute_program(GLcontext *ctx,
                       const struct gl_program *program, GLuint maxInst,
-                      struct gl_program_machine *machine, GLuint element);
+                      struct gl_program_machine *machine);
 
 
 #endif /* PROG_EXECUTE_H */
index 4482006ba646c167fc17a9dda2425cdc06b4e4f1..f88714d5c7b9cca1b1b0134a8896529eb0c99175 100644 (file)
@@ -148,8 +148,7 @@ run_program(GLcontext *ctx, SWspan *span, GLuint start, GLuint end)
          init_machine(ctx, &machine, program, span, i);
 
          if (_mesa_execute_program(ctx, &program->Base,
-                                   program->Base.NumInstructions,
-                                   &machine, i)) {
+                                   program->Base.NumInstructions, &machine)) {
             /* Store result color */
             COPY_4V(span->array->attribs[FRAG_ATTRIB_COL0][i],
                     machine.Outputs[FRAG_RESULT_COLR]);
index 3fe796ac568ea1558f9fa30387a81bb06d12404f..05b1a4aaab501bb461859fddc66c98b171f8e52c 100644 (file)
@@ -258,7 +258,7 @@ run_vp( GLcontext *ctx, struct tnl_pipeline_stage *stage )
 
       /* execute the program */
       _mesa_execute_program(ctx, &program->Base, program->Base.NumInstructions,
-                            &machine, 0);
+                            &machine);
 
       /* Fixup fog an point size results if needed */
       if (ctx->Fog.Enabled &&