summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-08-02 15:22:52 +0200
committerMarek Olšák <[email protected]>2019-08-06 18:03:26 -0400
commit16577f500297ff4ea73ae646b87b3f92e4a3d7cf (patch)
tree841c271030ab2047d1577891414e63b46f1e8cab /src
parent2207daf54953bc6c51087e5354055e9146bead75 (diff)
tgsi_to_nir: add a few needed double opcodes
for internal radeonsi shaders v2 (Connor): - Split out prep work from adding opcodes, and rewrite the former Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/nir/tgsi_to_nir.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/nir/tgsi_to_nir.c b/src/gallium/auxiliary/nir/tgsi_to_nir.c
index d2e054d7fc3..95074287624 100644
--- a/src/gallium/auxiliary/nir/tgsi_to_nir.c
+++ b/src/gallium/auxiliary/nir/tgsi_to_nir.c
@@ -1716,6 +1716,12 @@ static const nir_op op_trans[TGSI_OPCODE_LAST] = {
[TGSI_OPCODE_INTERP_SAMPLE] = 0, /* XXX */
[TGSI_OPCODE_INTERP_OFFSET] = 0, /* XXX */
+ [TGSI_OPCODE_F2D] = nir_op_f2f64,
+ [TGSI_OPCODE_D2F] = nir_op_f2f32,
+ [TGSI_OPCODE_DMUL] = nir_op_fmul,
+ [TGSI_OPCODE_D2U] = nir_op_f2u32,
+ [TGSI_OPCODE_U2D] = nir_op_u2f64,
+
[TGSI_OPCODE_U64ADD] = nir_op_iadd,
[TGSI_OPCODE_U64MUL] = nir_op_imul,
[TGSI_OPCODE_U64DIV] = nir_op_udiv,