tgsi_to_nir: implement a few needed 64-bit integer opcodes

for internal radeonsi shaders

v2 (Connor):
- Split this out from the prep work, and rework the former
- Add support for U64SNE

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
Marek Olšák 2019-08-02 15:19:00 +02:00
parent 37f6350c1d
commit 2207daf549

View file

@ -1715,6 +1715,11 @@ static const nir_op op_trans[TGSI_OPCODE_LAST] = {
[TGSI_OPCODE_INTERP_CENTROID] = 0, /* XXX */
[TGSI_OPCODE_INTERP_SAMPLE] = 0, /* XXX */
[TGSI_OPCODE_INTERP_OFFSET] = 0, /* XXX */
[TGSI_OPCODE_U64ADD] = nir_op_iadd,
[TGSI_OPCODE_U64MUL] = nir_op_imul,
[TGSI_OPCODE_U64DIV] = nir_op_udiv,
[TGSI_OPCODE_U64SNE] = nir_op_ine,
};
static void