i965: The jump instruction count is added
to IP pre-increment, and should point to the first instruction after the do instruction of the do-while block of code
This commit is contained in:
parent
a8fee3a498
commit
46e03d584a
|
@ -676,7 +676,7 @@ struct brw_instruction *brw_WHILE(struct brw_compile *p,
|
|||
insn->header.execution_size = do_insn->header.execution_size;
|
||||
|
||||
assert(do_insn->header.opcode == BRW_OPCODE_DO);
|
||||
insn->bits3.if_else.jump_count = do_insn - insn;
|
||||
insn->bits3.if_else.jump_count = do_insn - insn + 1;
|
||||
insn->bits3.if_else.pop_count = 0;
|
||||
insn->bits3.if_else.pad0 = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue