Module: Mesa Branch: master Commit: 63a85952711415ab151a39d21c4a67da97f2734e URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=63a85952711415ab151a39d21c4a67da97f2734e
Author: Vadim Girlin <[email protected]> Date: Tue May 15 18:48:06 2012 +0400 radeon/llvm: use correct intrinsic for CEIL Should be round_posinf instead of round_neginf. Signed-off-by: Vadim Girlin <[email protected]> Reviewed-by: Tom Stellard <[email protected]> --- src/gallium/drivers/radeon/R600Instructions.td | 4 ++-- .../drivers/radeon/radeon_setup_tgsi_llvm.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/radeon/R600Instructions.td b/src/gallium/drivers/radeon/R600Instructions.td index 9b59171..e145b9c 100644 --- a/src/gallium/drivers/radeon/R600Instructions.td +++ b/src/gallium/drivers/radeon/R600Instructions.td @@ -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 < diff --git a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c b/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c index 6e6fc3d..0689b6a 100644 --- a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c +++ b/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c @@ -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."; _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
