diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-12-13 10:13:24 -0500 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-12-13 10:26:35 -0500 |
commit | a337bf319c9cb1dc9a9f10aa43626efdc6f6171d (patch) | |
tree | 48fea139fbf6d90fe11c44779ce2a9dc895c57f0 /src/panfrost/midgard/midgard_ra_pipeline.c | |
parent | f204791cd6cf5998b04ea9df2d8de37c89adda56 (diff) |
pan/midgard: Handle misc. cppcheck warnings
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/midgard/midgard_ra_pipeline.c')
-rw-r--r-- | src/panfrost/midgard/midgard_ra_pipeline.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/panfrost/midgard/midgard_ra_pipeline.c b/src/panfrost/midgard/midgard_ra_pipeline.c index a85383fc249..7a8c7b118e2 100644 --- a/src/panfrost/midgard/midgard_ra_pipeline.c +++ b/src/panfrost/midgard/midgard_ra_pipeline.c @@ -56,8 +56,8 @@ mir_pipeline_ins( /* Analyze the bundle for a per-byte read mask */ - for (unsigned i = 0; i < bundle->instruction_count; ++i) { - midgard_instruction *q = bundle->instructions[i]; + for (unsigned j = 0; j < bundle->instruction_count; ++j) { + midgard_instruction *q = bundle->instructions[j]; read_mask |= mir_bytemask_of_read_components(q, node); /* The fragment colour can't be pipelined (well, it is @@ -69,8 +69,8 @@ mir_pipeline_ins( } /* Now analyze for a write mask */ - for (unsigned i = 0; i < bundle->instruction_count; ++i) { - midgard_instruction *q = bundle->instructions[i]; + for (unsigned j = 0; j < bundle->instruction_count; ++j) { + midgard_instruction *q = bundle->instructions[j]; if (q->dest != node) continue; /* Remove the written mask from the read requirements */ |