diff --git a/src/amd/llvm/ac_llvm_build.c b/src/amd/llvm/ac_llvm_build.c index 373eb77b4a0..f13baf792fc 100644 --- a/src/amd/llvm/ac_llvm_build.c +++ b/src/amd/llvm/ac_llvm_build.c @@ -4712,6 +4712,9 @@ ac_build_load_helper_invocation(struct ac_llvm_context *ctx) LLVMValueRef ac_build_is_helper_invocation(struct ac_llvm_context *ctx) { + if (!ctx->postponed_kill) + return ac_build_load_helper_invocation(ctx); + /* !(exact && postponed) */ LLVMValueRef exact = ac_build_intrinsic(ctx, "llvm.amdgcn.ps.live", ctx->i1, NULL, 0,