mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 08:30:10 +01:00
radeon/llvm: use correct intrinsic for CEIL
Should be round_posinf instead of round_neginf. Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
This commit is contained in:
parent
0298238bdd
commit
63a8595271
2 changed files with 3 additions and 3 deletions
|
|
@ -312,8 +312,8 @@ def TRUNC : R600_1OP <
|
|||
|
||||
def CEIL : R600_1OP <
|
||||
0x12, "CEIL",
|
||||
[(set R600_Reg32:$dst, (int_AMDIL_round_neginf R600_Reg32:$src))]> {
|
||||
let AMDILOp = AMDILInst.ROUND_NEGINF_f32;
|
||||
[(set R600_Reg32:$dst, (int_AMDIL_round_posinf R600_Reg32:$src))]> {
|
||||
let AMDILOp = AMDILInst.ROUND_POSINF_f32;
|
||||
}
|
||||
|
||||
def RNDNE : R600_1OP <
|
||||
|
|
|
|||
|
|
@ -968,7 +968,7 @@ void radeon_llvm_context_init(struct radeon_llvm_context * ctx)
|
|||
bld_base->op_actions[TGSI_OPCODE_TXQ].fetch_args = tex_fetch_args;
|
||||
bld_base->op_actions[TGSI_OPCODE_TXQ].intr_name = "llvm.AMDGPU.txq";
|
||||
bld_base->op_actions[TGSI_OPCODE_CEIL].emit = lp_build_tgsi_intrinsic;
|
||||
bld_base->op_actions[TGSI_OPCODE_CEIL].intr_name = "llvm.AMDIL.round.neginf.";
|
||||
bld_base->op_actions[TGSI_OPCODE_CEIL].intr_name = "llvm.AMDIL.round.posinf.";
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue