mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 02:40:11 +01:00
i965/eu: Set UIP on ELSE instructions on Broadwell.
Broadwell adds UIP on ELSE instructions. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
7d41170b62
commit
a1c899c718
1 changed files with 6 additions and 0 deletions
|
|
@ -1391,6 +1391,12 @@ patch_IF_ELSE(struct brw_compile *p,
|
|||
/* The IF instruction's UIP and ELSE's JIP should point to ENDIF */
|
||||
brw_inst_set_uip(brw, if_inst, br * (endif_inst - if_inst));
|
||||
brw_inst_set_jip(brw, else_inst, br * (endif_inst - else_inst));
|
||||
if (brw->gen >= 8) {
|
||||
/* Since we don't set branch_ctrl, the ELSE's JIP and UIP both
|
||||
* should point to ENDIF.
|
||||
*/
|
||||
brw_inst_set_uip(brw, else_inst, br * (endif_inst - else_inst));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue