summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2015-04-04 18:15:24 -0400
committerRob Clark <[email protected]>2015-04-05 09:24:17 -0400
commit52282fa42d34051b042d20b52e84f32274691e36 (patch)
tree037487cd380f372c9014e80b1358cd3f1a24a2fa /src/gallium
parent7579ae422a0fcd8c36a6e873f5e47d0e8d158640 (diff)
gallium/ttn: MOD is an integer instruction
Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Eric Anholt <[email protected]
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/nir/tgsi_to_nir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/nir/tgsi_to_nir.c b/src/gallium/auxiliary/nir/tgsi_to_nir.c
index 07afdb2733b..da935a4130f 100644
--- a/src/gallium/auxiliary/nir/tgsi_to_nir.c
+++ b/src/gallium/auxiliary/nir/tgsi_to_nir.c
@@ -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,