ac/llvm: fix the remaining s_barriers for LLVM 15
LLVM 15 doesn't insert s_waitcnt before barriers. 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:
@@ -4025,6 +4025,7 @@ void ac_build_wg_wavescan_bottom(struct ac_llvm_context *ctx, struct ac_wg_scan
|
||||
void ac_build_wg_wavescan(struct ac_llvm_context *ctx, struct ac_wg_scan *ws)
|
||||
{
|
||||
ac_build_wg_wavescan_top(ctx, ws);
|
||||
ac_build_waitcnt(ctx, AC_WAIT_LGKM);
|
||||
ac_build_s_barrier(ctx, ws->stage);
|
||||
ac_build_wg_wavescan_bottom(ctx, ws);
|
||||
}
|
||||
@@ -4087,6 +4088,7 @@ void ac_build_wg_scan_bottom(struct ac_llvm_context *ctx, struct ac_wg_scan *ws)
|
||||
void ac_build_wg_scan(struct ac_llvm_context *ctx, struct ac_wg_scan *ws)
|
||||
{
|
||||
ac_build_wg_scan_top(ctx, ws);
|
||||
ac_build_waitcnt(ctx, AC_WAIT_LGKM);
|
||||
ac_build_s_barrier(ctx, ws->stage);
|
||||
ac_build_wg_scan_bottom(ctx, ws);
|
||||
}
|
||||
|
Reference in New Issue
Block a user