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>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user