From 6efd00336b6a13493df02c1d561dbb96a7676a30 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sun, 23 May 2021 17:18:20 -0400 Subject: [PATCH] agx: Pack control flow instructions Nearly ALU. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_pack.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/asahi/compiler/agx_pack.c b/src/asahi/compiler/agx_pack.c index f75d90dc478..575eb3a5b72 100644 --- a/src/asahi/compiler/agx_pack.c +++ b/src/asahi/compiler/agx_pack.c @@ -260,6 +260,10 @@ agx_pack_alu(struct util_dynarray *emission, agx_instr *I) raw |= (D & BITFIELD_MASK(8)) << 7; extend |= ((D >> 8) << extend_offset); + } else if (info.immediates & AGX_IMMEDIATE_NEST) { + raw |= (I->invert_cond << 8); + raw |= (I->nest << 11); + raw |= (I->icond << 13); } for (unsigned s = 0; s < info.nr_srcs; ++s) {