From: Matt Turner Date: Fri, 19 Apr 2013 04:51:49 +0000 (-0700) Subject: Revert "i965: Check reg.nr for BRW_ARF_NULL instead of reg.file." X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e87015f5089a2c4a99e0288e1adeeabb5a7ca7e3;p=mesa.git Revert "i965: Check reg.nr for BRW_ARF_NULL instead of reg.file." 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 --- diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_emit.c index a98892b7a6a..704f219f6f7 100644 --- a/src/mesa/drivers/dri/i965/brw_eu_emit.c +++ b/src/mesa/drivers/dri/i965/brw_eu_emit.c @@ -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));