diff --git a/.pick_status.json b/.pick_status.json index f018cfa9bf5..93328242c38 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -2632,7 +2632,7 @@ "description": "aco/gfx10: Emit barrier at the start of NGG VS and TES.", "nominated": true, "nomination_type": 0, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": null }, diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp index 880958c3103..0b3e617831b 100644 --- a/src/amd/compiler/aco_instruction_selection.cpp +++ b/src/amd/compiler/aco_instruction_selection.cpp @@ -11836,6 +11836,13 @@ void select_program(Program *program, create_workgroup_barrier(bld); } + if (program->chip_class == GFX10 && + program->stage.hw == HWStage::NGG && + program->stage.num_sw_stages() == 1) { + /* Workaround for Navi 1x HW bug to ensure all NGG waves launch before s_sendmsg(GS_ALLOC_REQ). */ + Builder(ctx.program, ctx.block).sopp(aco_opcode::s_barrier, -1u, 0u); + } + if (check_merged_wave_info) { Temp cond = merged_wave_info_to_mask(&ctx, i); begin_divergent_if_then(&ctx, &ic_merged_wave_info, cond);