mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-24 03:18:25 +02:00
jay/lower_scoreboard: fix barriers in trivial SWSB
otherwise =sync hangs! this should make debugging more pleasant. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/42287>
This commit is contained in:
parent
c8f3d49813
commit
25eb75cd96
1 changed files with 7 additions and 0 deletions
|
|
@ -511,6 +511,13 @@ jay_lower_scoreboard_trivial(jay_shader *shader)
|
|||
|
||||
jay_builder b = jay_init_builder(func, jay_after_inst(I));
|
||||
sync_sbids(&b, BITFIELD_BIT(0), GEN_SBID_DST);
|
||||
|
||||
/* Barriers are non-EOT gateway messages. Insert the needed SYNC */
|
||||
if (I->op == JAY_OPCODE_SEND &&
|
||||
jay_send_sfid(I) == GEN_SFID_MESSAGE_GATEWAY) {
|
||||
b.cursor = jay_after_inst(I);
|
||||
jay_SYNC(&b, jay_null(), TGL_SYNC_BAR);
|
||||
}
|
||||
} else if (I->op == JAY_OPCODE_SCHEDULE_BARRIER) {
|
||||
jay_remove_instruction(I);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue