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:
9e915fd
)
pan/bi: Add bi_rewrite_index_src_single helper
author
Alyssa Rosenzweig
<alyssa.rosenzweig@collabora.com>
Thu, 15 Oct 2020 00:35:59 +0000
(20:35 -0400)
committer
Marge Bot
<eric+marge@anholt.net>
Fri, 23 Oct 2020 14:48:23 +0000
(14:48 +0000)
Ported from Midgard.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206>
src/panfrost/bifrost/bi_ra.c
patch
|
blob
|
history
diff --git
a/src/panfrost/bifrost/bi_ra.c
b/src/panfrost/bifrost/bi_ra.c
index
753089f
..
3cd15e8
100644
(file)
--- a/
src/panfrost/bifrost/bi_ra.c
+++ b/
src/panfrost/bifrost/bi_ra.c
@@
-174,6
+174,15
@@
bi_install_registers(bi_context *ctx, struct lcra_state *l)
}
}
+static void
+bi_rewrite_index_src_single(bi_instruction *ins, unsigned old, unsigned new)
+{
+ bi_foreach_src(ins, i) {
+ if (ins->src[i] == old)
+ ins->src[i] = new;
+ }
+}
+
static bi_instruction
bi_spill(unsigned node, uint64_t offset, unsigned channels)
{