Mesa (master): i965/fs: Fix compiler warnings about dead code from 963431829055f63ec94d

Eric Anholt anholt at kemper.freedesktop.org
Wed May 18 21:23:48 UTC 2011


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

Author: Eric Anholt <eric at anholt.net>
Date:   Mon May  9 14:58:39 2011 -0700

i965/fs: Fix compiler warnings about dead code from 963431829055f63ec94d

---

 src/mesa/drivers/dri/i965/brw_fs.cpp |   19 -------------------
 1 files changed, 0 insertions(+), 19 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 1b0e7e8..00f39d4 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -485,8 +485,6 @@ fs_visitor::emit_fragcoord_interpolation(ir_variable *ir)
 {
    fs_reg *reg = new(this->mem_ctx) fs_reg(this, ir->type);
    fs_reg wpos = *reg;
-   fs_reg neg_y = this->pixel_y;
-   neg_y.negate = true;
    bool flip = !ir->origin_upper_left ^ c->key.render_to_fbo;
 
    /* gl_FragCoord.x */
@@ -3070,7 +3068,6 @@ fs_visitor::calculate_live_intervals()
    int *use = ralloc_array(mem_ctx, int, num_vars);
    int loop_depth = 0;
    int loop_start = 0;
-   int bb_header_ip = 0;
 
    if (this->live_intervals_valid)
       return;
@@ -3130,22 +3127,6 @@ fs_visitor::calculate_live_intervals()
       }
 
       ip++;
-
-      /* Set the basic block header IP.  This is used for determining
-       * if a complete def of single-register virtual GRF in a loop
-       * dominates a use in the same basic block.  It's a quick way to
-       * reduce the live interval range of most register used in a
-       * loop.
-       */
-      if (inst->opcode == BRW_OPCODE_IF ||
-	  inst->opcode == BRW_OPCODE_ELSE ||
-	  inst->opcode == BRW_OPCODE_ENDIF ||
-	  inst->opcode == BRW_OPCODE_DO ||
-	  inst->opcode == BRW_OPCODE_WHILE ||
-	  inst->opcode == BRW_OPCODE_BREAK ||
-	  inst->opcode == BRW_OPCODE_CONTINUE) {
-	 bb_header_ip = ip;
-      }
    }
 
    ralloc_free(this->virtual_grf_def);




More information about the mesa-commit mailing list