mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
radv: fixup botched llvm API changes.
Reported-by: Jan Vesely <jan.vesely@rutgers.edu> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
2fdaf38c01
commit
19decd8ce4
1 changed files with 3 additions and 4 deletions
|
|
@ -296,14 +296,13 @@ create_llvm_function(LLVMContextRef ctx, LLVMModuleRef module,
|
|||
|
||||
LLVMSetFunctionCallConv(main_function, RADEON_LLVM_AMDGPU_CS);
|
||||
for (unsigned i = 0; i < sgpr_params; ++i) {
|
||||
LLVMValueRef P = LLVMGetParam(main_function, i);
|
||||
|
||||
if (i < array_params) {
|
||||
ac_add_function_attr(P, i + 1, AC_FUNC_ATTR_BYVAL);
|
||||
LLVMValueRef P = LLVMGetParam(main_function, i);
|
||||
ac_add_function_attr(main_function, i + 1, AC_FUNC_ATTR_BYVAL);
|
||||
ac_add_attr_dereferenceable(P, UINT64_MAX);
|
||||
}
|
||||
else {
|
||||
ac_add_function_attr(P, i + 1, AC_FUNC_ATTR_INREG);
|
||||
ac_add_function_attr(main_function, i + 1, AC_FUNC_ATTR_INREG);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue