ac/llvm: fix gfx11 fs input load for 16bit varying

Otherwise we get empty output.

Fixes: b07204d780 ("radeonsi/gfx11: interp changes for 16bit")
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19637>
(cherry picked from commit 88b1bb326dae2d4cc7e069849f82c08f35c407d5)
This commit is contained in:
Qiang Yu 2022-11-10 16:44:56 +08:00 committed by Dylan Baker
parent 838c1249b6
commit 7b1b097dd0
2 changed files with 2 additions and 2 deletions

View File

@ -643,7 +643,7 @@
"description": "ac/llvm: fix gfx11 fs input load for 16bit varying",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "b07204d7804496445ddaa293ed3a2b90d170b1db"
},

View File

@ -1030,7 +1030,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;