mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
radeon/llvm: Adapt to AMDGPU.rsq intrinsic change in LLVM 3.5
Reviewed-by: Tom Stellard <thomas.stellard@amd.com> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
This commit is contained in:
parent
949beb0b84
commit
93b6b1fa83
1 changed files with 4 additions and 0 deletions
|
|
@ -1384,7 +1384,11 @@ void radeon_llvm_context_init(struct radeon_llvm_context * ctx)
|
|||
bld_base->op_actions[TGSI_OPCODE_UCMP].emit = emit_ucmp;
|
||||
|
||||
bld_base->rsq_action.emit = build_tgsi_intrinsic_nomem;
|
||||
#if HAVE_LLVM >= 0x0305
|
||||
bld_base->rsq_action.intr_name = "llvm.AMDGPU.rsq.";
|
||||
#else
|
||||
bld_base->rsq_action.intr_name = "llvm.AMDGPU.rsq";
|
||||
#endif
|
||||
}
|
||||
|
||||
void radeon_llvm_create_func(struct radeon_llvm_context * ctx,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue