i965: fix unused variable warning in gen7_block_read_scratch()
authorTimothy Arceri <timothy.arceri@collabora.com>
Tue, 4 Oct 2016 00:15:05 +0000 (11:15 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Tue, 4 Oct 2016 23:13:58 +0000 (10:13 +1100)
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/dri/i965/brw_eu_emit.c

index c98867aa6c9112af5ce0ee78ff61f6ba4587dea9..cfb3fa01d08cca35a7fbdbff5cc3bbac5834e9e8 100644 (file)
@@ -2262,9 +2262,8 @@ gen7_block_read_scratch(struct brw_codegen *p,
                         int num_regs,
                         unsigned offset)
 {
-   const struct gen_device_info *devinfo = p->devinfo;
    brw_inst *insn = next_insn(p, BRW_OPCODE_SEND);
-   assert(brw_inst_pred_control(devinfo, insn) == BRW_PREDICATE_NONE);
+   assert(brw_inst_pred_control(p->devinfo, insn) == BRW_PREDICATE_NONE);
 
    brw_set_dest(p, insn, retype(dest, BRW_REGISTER_TYPE_UW));