gallium/ttn: MOD is an integer instruction
authorRob Clark <robclark@freedesktop.org>
Sat, 4 Apr 2015 22:15:24 +0000 (18:15 -0400)
committerRob Clark <robclark@freedesktop.org>
Sun, 5 Apr 2015 13:24:17 +0000 (09:24 -0400)
Signed-off-by: Rob Clark <robclark@freedesktop.org>
Reviewed-by: Eric Anholt <eric@anholt.net
src/gallium/auxiliary/nir/tgsi_to_nir.c

index 07afdb2733b9d9f1b74fe54f5a2506755ad52c46..da935a4130fda07f64d1a484fa504812adfb3eaf 100644 (file)
@@ -1034,7 +1034,7 @@ static const nir_op op_trans[TGSI_OPCODE_LAST] = {
    [TGSI_OPCODE_SHL] = nir_op_ishl,
    [TGSI_OPCODE_AND] = nir_op_iand,
    [TGSI_OPCODE_OR] = nir_op_ior,
-   [TGSI_OPCODE_MOD] = nir_op_fmod,
+   [TGSI_OPCODE_MOD] = nir_op_umod,
    [TGSI_OPCODE_XOR] = nir_op_ixor,
    [TGSI_OPCODE_SAD] = 0, /* XXX */
    [TGSI_OPCODE_TXF] = 0,