Mesa (master): ir3: initialize progress false before ir3_nir_lower_imul

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jun 14 05:32:49 UTC 2019


Module: Mesa
Branch: master
Commit: 287b58f827052d1d9cf101871e40ee24f6e7eef2
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=287b58f827052d1d9cf101871e40ee24f6e7eef2

Author: Tapani Pälli <tapani.palli at intel.com>
Date:   Thu Jun 13 12:58:04 2019 +0300

ir3: initialize progress false before ir3_nir_lower_imul

Removes a compiler warning about uninitialized variable.

Fixes: c02ffd2700c "ir3: Use the new NIR lowering pass for integer multiplication"
Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
Reviewed-by: Rob Clark <robclark at gmail.com>
Reviewed-by: Eduardo Lima <elima at igalia.com>

---

 src/freedreno/ir3/ir3_context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/freedreno/ir3/ir3_context.c b/src/freedreno/ir3/ir3_context.c
index e572f33ef24..49a7776164e 100644
--- a/src/freedreno/ir3/ir3_context.c
+++ b/src/freedreno/ir3/ir3_context.c
@@ -90,7 +90,7 @@ ir3_context_init(struct ir3_compiler *compiler,
 	 * However, we want a final swing of a few passes to have a chance
 	 * at optimizing the result.
 	 */
-	bool progress;
+	bool progress = false;
 	NIR_PASS(progress, ctx->s, ir3_nir_lower_imul);
 	if (progress) {
 		NIR_PASS_V(ctx->s, nir_opt_algebraic);




More information about the mesa-commit mailing list