diff options
author | Samuel Pitoiset <[email protected]> | 2019-03-21 09:19:06 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-03-21 12:13:09 +0100 |
commit | 2ac5c5c1b54b45e1926e3c3c6737fbecd0fddfc5 (patch) | |
tree | 8d01229235b2c9a667222582f101f3a0c03db0b8 /src/amd/common | |
parent | 0eb1478ac254e97d85b06f42b9aa474a8b829b07 (diff) |
ac: add 16-bit support to fract
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/common')
-rw-r--r-- | src/amd/common/ac_llvm_build.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/amd/common/ac_llvm_build.c b/src/amd/common/ac_llvm_build.c index a153b008594..8701d2ca43a 100644 --- a/src/amd/common/ac_llvm_build.c +++ b/src/amd/common/ac_llvm_build.c @@ -2436,7 +2436,10 @@ LLVMValueRef ac_build_fract(struct ac_llvm_context *ctx, LLVMValueRef src0, LLVMTypeRef type; char *intr; - if (bitsize == 32) { + if (bitsize == 16) { + intr = "llvm.amdgcn.fract.f16"; + type = ctx->f16; + } else if (bitsize == 32) { intr = "llvm.amdgcn.fract.f32"; type = ctx->f32; } else { |