softpipe: rename a var
authorBrian Paul <brianp@vmware.com>
Fri, 25 Jun 2010 15:39:43 +0000 (09:39 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 25 Jun 2010 15:56:22 +0000 (09:56 -0600)
src/gallium/drivers/softpipe/sp_quad_fs.c

index 907e94b59b98ab924af61527346fdc5be9d47801..d240bcbf3bb4d1ef9abf06e73996bfcde5204afe 100644 (file)
@@ -109,7 +109,7 @@ shade_quads(struct quad_stage *qs,
 {
    struct softpipe_context *softpipe = qs->softpipe;
    struct tgsi_exec_machine *machine = softpipe->fs_machine;
-   unsigned i, pass = 0;
+   unsigned i, nr_quads = 0;
 
    for (i = 0; i < PIPE_MAX_CONSTANT_BUFFERS; i++) {
       machine->Consts[i] = softpipe->mapped_constants[PIPE_SHADER_FRAGMENT][i];
@@ -123,11 +123,11 @@ shade_quads(struct quad_stage *qs,
       if (/*do_coverage*/ 0)
          coverage_quad( qs, quads[i] );
 
-      quads[pass++] = quads[i];
+      quads[nr_quads++] = quads[i];
    }
    
-   if (pass)
-      qs->next->run(qs->next, quads, pass);
+   if (nr_quads)
+      qs->next->run(qs->next, quads, nr_quads);
 }