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_schedule.c | |
parent | f204791cd6cf5998b04ea9df2d8de37c89adda56 (diff) |
pan/midgard: Handle misc. cppcheck warnings
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/midgard/midgard_schedule.c')
-rw-r--r-- | src/panfrost/midgard/midgard_schedule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/panfrost/midgard/midgard_schedule.c b/src/panfrost/midgard/midgard_schedule.c index f2e9a3c8e9c..6d83330a502 100644 --- a/src/panfrost/midgard/midgard_schedule.c +++ b/src/panfrost/midgard/midgard_schedule.c @@ -914,12 +914,12 @@ mir_schedule_alu( mir_choose_alu(&sadd, instructions, worklist, len, &predicate, UNIT_SADD); /* Check if writeout reads its own register */ - bool bad_writeout = false; if (branch && branch->writeout) { midgard_instruction *stages[] = { sadd, vadd, smul }; unsigned src = (branch->src[0] == ~0) ? SSA_FIXED_REGISTER(0) : branch->src[0]; unsigned writeout_mask = 0x0; + bool bad_writeout = false; for (unsigned i = 0; i < ARRAY_SIZE(stages); ++i) { if (!stages[i]) |