diff options
author | Kenneth Graunke <[email protected]> | 2014-10-15 19:13:16 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-10-21 21:13:37 -0700 |
commit | cb36e79f96101528080917c469dea3b525df2a32 (patch) | |
tree | d1ec2ee08e68d2e6c0bb74e0ab8e4a4e1d1cf640 /src/mesa/drivers/dri | |
parent | 4d34c4b5823de984fb8f0469b67c6b4be02030b2 (diff) |
i965/vec4: Delete some dead code in visit(ir_expression *).
Nothing uses the vector_elements temporary variable.
Setting this->result.file is dead because we overwrite this->result a
few lines later.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp index 0caa7a50f39..0b2b9ca7009 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp @@ -1289,14 +1289,6 @@ vec4_visitor::visit(ir_expression *ir) assert(!ir->operands[operand]->type->is_matrix()); } - int vector_elements = ir->operands[0]->type->vector_elements; - if (ir->operands[1]) { - vector_elements = MAX2(vector_elements, - ir->operands[1]->type->vector_elements); - } - - this->result.file = BAD_FILE; - /* Storage for our result. Ideally for an assignment we'd be using * the actual storage for the result here, instead. */ |