projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c717c28
)
pan/bi: Handle uhadd, urhadd opcodes
author
Alyssa Rosenzweig
<alyssa@collabora.com>
Fri, 24 Jun 2022 13:09:06 +0000
(09:09 -0400)
committer
Marge Bot
<emma+marge@anholt.net>
Mon, 19 Sep 2022 17:22:58 +0000
(17:22 +0000)
Fixes integer_ops.integer_hadd.
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18656>
src/panfrost/bifrost/bifrost_compile.c
patch
|
blob
|
history
diff --git
a/src/panfrost/bifrost/bifrost_compile.c
b/src/panfrost/bifrost/bifrost_compile.c
index
f96ae46
..
b83cc41
100644
(file)
--- a/
src/panfrost/bifrost/bifrost_compile.c
+++ b/
src/panfrost/bifrost/bifrost_compile.c
@@
-2991,6
+2991,14
@@
bi_emit_alu(bi_builder *b, nir_alu_instr *instr)
bi_hadd_to(b, nir_type_int, sz, dst, s0, s1, BI_ROUND_RTP);
break;
+ case nir_op_uhadd:
+ bi_hadd_to(b, nir_type_uint, sz, dst, s0, s1, BI_ROUND_RTN);
+ break;
+
+ case nir_op_urhadd:
+ bi_hadd_to(b, nir_type_uint, sz, dst, s0, s1, BI_ROUND_RTP);
+ break;
+
case nir_op_ineg:
bi_isub_to(b, nir_type_int, sz, dst, bi_zero(), s0, false);
break;