From 88b1bb326dae2d4cc7e069849f82c08f35c407d5 Mon Sep 17 00:00:00 2001 From: Qiang Yu Date: Thu, 10 Nov 2022 16:44:56 +0800 Subject: [PATCH] ac/llvm: fix gfx11 fs input load for 16bit varying MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise we get empty output. Fixes: b07204d7804 ("radeonsi/gfx11: interp changes for 16bit") Reviewed-by: Pierre-Eric Pelloux-Prayer Reviewed-by: Marek Olšák Signed-off-by: Qiang Yu Part-of: --- src/amd/llvm/ac_llvm_build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/llvm/ac_llvm_build.c b/src/amd/llvm/ac_llvm_build.c index e9d4ae0ea07..8f08ca47c50 100644 --- a/src/amd/llvm/ac_llvm_build.c +++ b/src/amd/llvm/ac_llvm_build.c @@ -1034,7 +1034,7 @@ LLVMValueRef ac_build_fs_interp_f16(struct ac_llvm_context *ctx, LLVMValueRef ll args[3] = high_16bits ? ctx->i1true : ctx->i1false; return ac_build_intrinsic(ctx, "llvm.amdgcn.interp.inreg.p2.f16", - ctx->f32, args, 4, AC_FUNC_ATTR_READNONE); + ctx->f16, args, 4, AC_FUNC_ATTR_READNONE); } else { LLVMValueRef p1;