agx: Add interleave opcode

We'll use it for texture atomics.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24258>
This commit is contained in:
Alyssa Rosenzweig
2023-06-06 18:54:44 -04:00
committed by Marge Bot
parent a6ed776a13
commit e2cfd2a228
2 changed files with 2 additions and 0 deletions

View File

@@ -1131,6 +1131,7 @@ agx_emit_alu(agx_builder *b, nir_alu_instr *instr)
BINOP(iand, and);
BINOP(ior, or);
BINOP(ixor, xor);
BINOP(interleave_agx, intl);
case nir_op_feq:
return agx_fcmpsel_to(b, dst, s0, s1, i1, i0, AGX_FCOND_EQ);

View File

@@ -335,6 +335,7 @@ for is_float in [False, True]:
imms = imms, is_float = is_float)
op("bitop", (0x7E, 0x7F, 6, _), srcs = 2, imms = [TRUTH_TABLE])
op("intl", (0x3E, 0x7F, 6, _), srcs = 2, imms = [])
op("convert", (0x3E | L, 0x7F | L | (0x3 << 38), 6, _), srcs = 2, imms = [ROUND])
# Sources are the coeffient register and the sample index (if applicable)