From f9070f937f66a80932bc287f1a14a160fb080925 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 3 May 2021 10:57:40 -0400 Subject: [PATCH] pan/bi: Add missing sr_count to pseudo-atomics Fixes missing prints for these. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/ISA.xml | 4 ++++ src/panfrost/bifrost/bifrost_compile.c | 13 ++++--------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/panfrost/bifrost/ISA.xml b/src/panfrost/bifrost/ISA.xml index b5965fd3ce4..d30ad6cfb88 100644 --- a/src/panfrost/bifrost/ISA.xml +++ b/src/panfrost/bifrost/ISA.xml @@ -8203,6 +8203,8 @@ aor axor + + @@ -8215,6 +8217,8 @@ asmax1 aor1 + + diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c index a0c21ceef57..f1fbdc5272f 100644 --- a/src/panfrost/bifrost/bifrost_compile.c +++ b/src/panfrost/bifrost/bifrost_compile.c @@ -865,21 +865,16 @@ bi_emit_atomic_i32_to(bi_builder *b, bi_index dst, enum bi_atom_opc opc = bi_atom_opc_for_nir(intrinsic); enum bi_atom_opc post_opc = opc; - bi_instr *I; - /* Generate either ATOM_C or ATOM_C1 as required */ if (bi_promote_atom_c1(opc, arg, &opc)) { - I = bi_patom_c1_i32_to(b, sr, bi_word(addr, 0), - bi_word(addr, 1), opc); + bi_patom_c1_i32_to(b, sr, bi_word(addr, 0), + bi_word(addr, 1), opc, 2); } else { bi_mov_i32_to(b, sr, arg); - I = bi_patom_c_i32_to(b, sr, sr, bi_word(addr, 0), - bi_word(addr, 1), opc); - + bi_patom_c_i32_to(b, sr, sr, bi_word(addr, 0), + bi_word(addr, 1), opc, 2); } - I->sr_count = 2; - /* Post-process it */ bi_atom_post_i32_to(b, dst, bi_word(sr, 0), bi_word(sr, 1), post_opc); }