pan/mdg: Cleanup mir_rewrite_index_src_single
Use idiomatic iterator. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206>
This commit is contained in:

committed by
Marge Bot

parent
b19d9c86a8
commit
d2bfcba54d
@@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
void mir_rewrite_index_src_single(midgard_instruction *ins, unsigned old, unsigned new)
|
void mir_rewrite_index_src_single(midgard_instruction *ins, unsigned old, unsigned new)
|
||||||
{
|
{
|
||||||
for (unsigned i = 0; i < ARRAY_SIZE(ins->src); ++i) {
|
mir_foreach_src(ins, i) {
|
||||||
if (ins->src[i] == old)
|
if (ins->src[i] == old)
|
||||||
ins->src[i] = new;
|
ins->src[i] = new;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user