diff options
-rw-r--r-- | src/intel/compiler/brw_fs.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index aa29c8a4deb..43b920ae33d 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -2431,16 +2431,16 @@ fs_visitor::opt_algebraic() break; case BRW_OPCODE_MUL: - if (inst->src[1].file != IMM) - continue; + if (inst->src[1].file != IMM) + continue; - /* a * 1.0 = a */ - if (inst->src[1].is_one()) { - inst->opcode = BRW_OPCODE_MOV; - inst->src[1] = reg_undef; - progress = true; - break; - } + /* a * 1.0 = a */ + if (inst->src[1].is_one()) { + inst->opcode = BRW_OPCODE_MOV; + inst->src[1] = reg_undef; + progress = true; + break; + } /* a * -1.0 = -a */ if (inst->src[1].is_negative_one()) { @@ -2468,7 +2468,7 @@ fs_visitor::opt_algebraic() progress = true; break; } - break; + break; case BRW_OPCODE_ADD: if (inst->src[1].file != IMM) continue; |