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:

committed by
Marge Bot

parent
a6ed776a13
commit
e2cfd2a228
@@ -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);
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user