summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-05-09 14:58:39 -0700
committerEric Anholt <[email protected]>2011-05-18 13:57:16 -0700
commit5dd5be69f099211db027b6e39150cacefcfdf8b6 (patch)
treef10f6c7a884f0eeaca78442ead191bcc906913c9 /src/mesa/drivers/dri
parent61c67eca7dbcef4b7b1398f5a9e0193597f304ed (diff)
i965/fs: Fix compiler warnings about dead code from 963431829055f63ec94d
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp19
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 1b0e7e82fbe..00f39d4b534 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);