[Mesa-dev] [PATCH 01/11] i965/fs: Fix compiler warnings about dead code from 963431829055f63ec94d

Eric Anholt eric at anholt.net
Thu May 12 21:05:20 PDT 2011


---
 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 21eb9e4..2e7f810 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 */
@@ -3008,7 +3006,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;
@@ -3068,22 +3065,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);
-- 
1.7.5.1



More information about the mesa-dev mailing list