mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 17:40:11 +01:00
amd/common: use llvm.amdgcn.wqm for explicit derivatives
To comply with an upcoming change in LLVM, see https://reviews.llvm.org/D46051 Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
b30949a9c2
commit
c0acb596f4
1 changed files with 7 additions and 0 deletions
|
|
@ -1248,6 +1248,13 @@ ac_build_ddxy(struct ac_llvm_context *ctx,
|
||||||
tl = LLVMBuildBitCast(ctx->builder, tl, ctx->f32, "");
|
tl = LLVMBuildBitCast(ctx->builder, tl, ctx->f32, "");
|
||||||
trbl = LLVMBuildBitCast(ctx->builder, trbl, ctx->f32, "");
|
trbl = LLVMBuildBitCast(ctx->builder, trbl, ctx->f32, "");
|
||||||
result = LLVMBuildFSub(ctx->builder, trbl, tl, "");
|
result = LLVMBuildFSub(ctx->builder, trbl, tl, "");
|
||||||
|
|
||||||
|
if (HAVE_LLVM >= 0x0700) {
|
||||||
|
result = ac_build_intrinsic(ctx,
|
||||||
|
"llvm.amdgcn.wqm.f32", ctx->f32,
|
||||||
|
&result, 1, 0);
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue