radeonsi: direct emit intrinsic for DFRAC.
authorDave Airlie <airlied@redhat.com>
Mon, 13 Jul 2015 08:11:20 +0000 (09:11 +0100)
committerDave Airlie <airlied@redhat.com>
Mon, 13 Jul 2015 08:21:43 +0000 (09:21 +0100)
Michel reported this still failed, and this fixed it

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c

index 444a41c01da0fd69537204804dbf087d1ba973d8..7c0318152d14421d9f1d1a4da55b27ce32eadd1b 100644 (file)
@@ -1582,6 +1582,7 @@ void radeon_llvm_context_init(struct radeon_llvm_context * ctx)
        bld_base->op_actions[TGSI_OPCODE_DABS].intr_name = "fabs";
        bld_base->op_actions[TGSI_OPCODE_DFMA].emit = build_tgsi_intrinsic_nomem;
        bld_base->op_actions[TGSI_OPCODE_DFMA].intr_name = "llvm.fma.f64";
+       bld_base->op_actions[TGSI_OPCODE_DFRAC].emit = build_tgsi_intrinsic_nomem;
        bld_base->op_actions[TGSI_OPCODE_DFRAC].intr_name = "llvm.AMDIL.fraction.";
        bld_base->op_actions[TGSI_OPCODE_DNEG].emit = emit_dneg;
        bld_base->op_actions[TGSI_OPCODE_DSEQ].emit = emit_dcmp;