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