i965: Warning fix
authorEric Anholt <eric@anholt.net>
Tue, 24 Dec 2013 00:08:53 +0000 (16:08 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 6 Jan 2014 18:54:22 +0000 (10:54 -0800)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_eu_emit.c

index c6538281b18527210ffcd25922f89715101c32a8..c2ca10d54b9706140a2f22447978ad2dc695766e 100644 (file)
@@ -108,8 +108,6 @@ unsigned
 brw_reg_type_to_hw_type(const struct brw_context *brw,
                         enum brw_reg_type type, unsigned file)
 {
-   bool imm = file == BRW_IMMEDIATE_VALUE;
-
    if (file == BRW_IMMEDIATE_VALUE) {
       const static int imm_hw_types[] = {
          [BRW_REGISTER_TYPE_UD] = BRW_HW_REG_TYPE_UD,