Commit 49a20d3a authored by Petri Latvala's avatar Petri Latvala

assembler: Compare correct things

This code is supposedly checking of the given register is nr=0 in ARF but
was instead checking twice if the register is anything in ARF.
Signed-off-by: Petri Latvala's avatarPetri Latvala <petri.latvala@intel.com>
Reviewed-by: Arkadiusz Hiler's avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
parent 9e0df467
......@@ -180,7 +180,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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment