i965: Check reg.nr for BRW_ARF_NULL instead of reg.file.
authorMatt Turner <mattst88@gmail.com>
Mon, 15 Apr 2013 22:00:08 +0000 (15:00 -0700)
committerMatt Turner <mattst88@gmail.com>
Thu, 18 Apr 2013 01:19:34 +0000 (18:19 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_eu_emit.c

index 704f219f6f77356100d292f768d81338c94ec03a..a98892b7a6a17de9cd65e7ae0ad7b190b9f032af 100644 (file)
@@ -182,7 +182,7 @@ validate_reg(struct brw_instruction *insn, struct brw_reg reg)
    }
 
    if (reg.file == BRW_ARCHITECTURE_REGISTER_FILE &&
-       reg.file == BRW_ARF_NULL)
+       reg.nr == BRW_ARF_NULL)
       return;
 
    assert(reg.hstride >= 0 && reg.hstride < Elements(hstride_for_reg));