Mesa (master): pan/bit: Wire up add/add op+test
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Apr 6 19:59:02 UTC 2020
Module: Mesa
Branch: master
Commit: eeb626257d486feba814cbd608c7cd0a22159e6e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=eeb626257d486feba814cbd608c7cd0a22159e6e
Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date: Mon Apr 6 14:15:37 2020 -0400
pan/bit: Wire up add/add op+test
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at 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 | 2 +-
src/panfrost/bifrost/test/bi_test_pack.c | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/panfrost/bifrost/bi_pack.c b/src/panfrost/bifrost/bi_pack.c
index 89eab4fa04f..519bc713041 100644
--- a/src/panfrost/bifrost/bi_pack.c
+++ b/src/panfrost/bifrost/bi_pack.c
@@ -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:
diff --git a/src/panfrost/bifrost/test/bi_test_pack.c b/src/panfrost/bifrost/test/bi_test_pack.c
index a45a15125cc..ef8e32a9929 100644
--- a/src/panfrost/bifrost/test/bi_test_pack.c
+++ b/src/panfrost/bifrost/test/bi_test_pack.c
@@ -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);
}
More information about the mesa-commit
mailing list