mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-26 17:12:07 +00:00
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:
parent
838c1249b6
commit
7b1b097dd0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user