i965: Fix compiler warnings.
authorEric Anholt <eric@anholt.net>
Tue, 20 Sep 2011 17:19:50 +0000 (10:19 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 20 Sep 2011 17:20:06 +0000 (10:20 -0700)
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp

index 36042319be14cef11b4e66fb1e2a9fba96e6c807..df43be0555ae0386c977d373ebe6ec42faeb4ce1 100644 (file)
@@ -967,9 +967,8 @@ fs_visitor::emit_texture_gen7(ir_texture *ir, fs_reg dst, fs_reg coordinate,
       break;
    case ir_txf:
       /* Unfortunately, the parameters for LD are intermixed: u, lod, v, r. */
-      fs_inst *inst = emit(BRW_OPCODE_MOV,
-                          fs_reg(MRF, base_mrf + mlen, BRW_REGISTER_TYPE_D),
-                          coordinate);
+      emit(BRW_OPCODE_MOV,
+          fs_reg(MRF, base_mrf + mlen, BRW_REGISTER_TYPE_D), coordinate);
       coordinate.reg_offset++;
       mlen += reg_width;
 
@@ -978,9 +977,8 @@ fs_visitor::emit_texture_gen7(ir_texture *ir, fs_reg dst, fs_reg coordinate,
       mlen += reg_width;
 
       for (int i = 1; i < ir->coordinate->type->vector_elements; i++) {
-        fs_inst *inst = emit(BRW_OPCODE_MOV,
-                             fs_reg(MRF, base_mrf + mlen, BRW_REGISTER_TYPE_D),
-                             coordinate);
+        emit(BRW_OPCODE_MOV,
+             fs_reg(MRF, base_mrf + mlen, BRW_REGISTER_TYPE_D), coordinate);
         coordinate.reg_offset++;
         mlen += reg_width;
       }