pan/bit: Wire up add/add op+test
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 6 Apr 2020 18:15:37 +0000 (14:15 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 6 Apr 2020 19:41:56 +0000 (19:41 +0000)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4470>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4470>

src/panfrost/bifrost/bi_pack.c
src/panfrost/bifrost/test/bi_test_pack.c

index 89eab4fa04f0477b6ab56ff0f243d8ba5d7f46be..519bc71304107d481ef6bd482279a6b094c3de3b 100644 (file)
@@ -1057,7 +1057,7 @@ bi_pack_add(bi_clause *clause, bi_bundle bundle, struct bi_registers *regs)
 
         switch (bundle.add->type) {
         case BI_ADD:
-                return BIFROST_ADD_NOP;
+                return bi_pack_add_addmin(bundle.add, regs);
         case BI_ATEST:
                 return bi_pack_add_atest(clause, bundle.add, regs);
         case BI_BRANCH:
index a45a15125ccc7455088e8e34033d80dee5cfc8c6..ef8e32a99293befcb34c78eed489949075f8f36c 100644 (file)
@@ -303,6 +303,7 @@ bit_packing(struct panfrost_device *dev, enum bit_debug debug)
                 bit_fmod_helper(dev, BI_ADD, sz, true, input, debug, 0);
 
                 if (sz == 32) {
+                        bit_fmod_helper(dev, BI_ADD, sz, false, input, debug, 0);
                         bit_fmod_helper(dev, BI_MINMAX, sz, false, input, debug, BI_MINMAX_MIN);
                         bit_fmod_helper(dev, BI_MINMAX, sz, false, input, debug, BI_MINMAX_MAX);
                 }