Mesa (master): softpipe: rename a var

Brian Paul brianp at kemper.freedesktop.org
Fri Jun 25 13:12:58 PDT 2010


Module: Mesa
Branch: master
Commit: e099ed2c64edc4adc716dce5c54e4c97444504d8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e099ed2c64edc4adc716dce5c54e4c97444504d8

Author: Brian Paul <brianp at vmware.com>
Date:   Fri Jun 25 09:39:43 2010 -0600

softpipe: rename a var

---

 src/gallium/drivers/softpipe/sp_quad_fs.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/gallium/drivers/softpipe/sp_quad_fs.c b/src/gallium/drivers/softpipe/sp_quad_fs.c
index 907e94b..d240bcb 100644
--- a/src/gallium/drivers/softpipe/sp_quad_fs.c
+++ b/src/gallium/drivers/softpipe/sp_quad_fs.c
@@ -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);
 }
    
 



More information about the mesa-commit mailing list