ac/llvm: replace LLVMBuildFence with ac_build_waitcnt(VSTORE)

No change in LLVM IR.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16304>
This commit is contained in:
Marek Olšák 2022-05-02 19:52:15 -04:00 committed by Marge Bot
parent bed91084c8
commit fb51a3c4b0
2 changed files with 2 additions and 2 deletions

View file

@ -1818,7 +1818,7 @@ emit_gs_epilogue(struct radv_shader_context *ctx)
}
if (ctx->ac.chip_class >= GFX10)
LLVMBuildFence(ctx->ac.builder, LLVMAtomicOrderingRelease, false, "");
ac_build_waitcnt(&ctx->ac, AC_WAIT_VSTORE);
ac_build_sendmsg(&ctx->ac, AC_SENDMSG_GS_OP_NOP | AC_SENDMSG_GS_DONE, ctx->gs_wave_id);
}

View file

@ -217,7 +217,7 @@ static void emit_gs_epilogue(struct si_shader_context *ctx)
}
if (ctx->screen->info.chip_class >= GFX10)
LLVMBuildFence(ctx->ac.builder, LLVMAtomicOrderingRelease, false, "");
ac_build_waitcnt(&ctx->ac, AC_WAIT_VSTORE);
if (ctx->screen->use_ngg) {
/* Implement PIPE_STAT_QUERY_GS_PRIMITIVES for non-ngg draws because we can't