aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2020-07-08 13:49:31 -0700
committerMarge Bot <[email protected]>2020-07-14 03:38:53 +0000
commit5c1afd1ce43b8d40a14845b2b026924709956405 (patch)
tree6e4546927e3d4fc62084796b61ae49f554c2fff5
parentafb3f21c9f1116db9e37c6158e98ab7856af815a (diff)
freedreno/ir3: Fix uninit var warning.
It's a decent bit of analysis to see that the initialization will always happen, and my compiler isn't doing so in at least one configuration. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5834>
-rw-r--r--src/freedreno/ir3/ir3_shader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/freedreno/ir3/ir3_shader.c b/src/freedreno/ir3/ir3_shader.c
index 9771c66faf6..6ecce8fb290 100644
--- a/src/freedreno/ir3/ir3_shader.c
+++ b/src/freedreno/ir3/ir3_shader.c
@@ -400,7 +400,7 @@ trim_constlens(unsigned *constlens,
cur_total += constlens[i];
}
- unsigned max_stage;
+ unsigned max_stage = 0;
unsigned max_const = 0;
uint32_t trimmed = 0;