gallivm: (trivial) fix ddiv cpu implementation
authorRoland Scheidegger <sroland@vmware.com>
Mon, 23 Jan 2017 17:04:12 +0000 (18:04 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Tue, 24 Jan 2017 18:12:46 +0000 (19:12 +0100)
we can't use the cpu implementation of fdiv, as this one uses different
lp_build_context, which causes assertion failure.
Just use default fdiv action (there is no fast rcp for doubles which we
could potentially use anyway).

Cc: 17.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c

index 937170fec1ffbda48817fbfecd457ffe0215694f..e78cdb011ab350672508ac78d420b7fb7e916ca9 100644 (file)
@@ -2624,7 +2624,6 @@ lp_set_default_actions_cpu(
    bld_base->op_actions[TGSI_OPCODE_DSLT].emit = dslt_emit_cpu;
    bld_base->op_actions[TGSI_OPCODE_DSNE].emit = dsne_emit_cpu;
 
-   bld_base->op_actions[TGSI_OPCODE_DDIV].emit = div_emit_cpu;
    bld_base->op_actions[TGSI_OPCODE_DRSQ].emit = drecip_sqrt_emit_cpu;
    bld_base->op_actions[TGSI_OPCODE_DSQRT].emit = dsqrt_emit_cpu;