Revert "i965: Check reg.nr for BRW_ARF_NULL instead of reg.file."
authorMatt Turner <mattst88@gmail.com>
Fri, 19 Apr 2013 04:51:49 +0000 (21:51 -0700)
committerMatt Turner <mattst88@gmail.com>
Fri, 19 Apr 2013 04:52:27 +0000 (21:52 -0700)
This reverts commit ecdda414d361ab4430fd5747c9217687c1f3d63f.

Commit was supposed to be a simple typo fix. Clearly needs more
investigating.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=63688

src/mesa/drivers/dri/i965/brw_eu_emit.c

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