From 0222c550c726f0b80d083681d749e2891b11a318 Mon Sep 17 00:00:00 2001 From: Axel Davy Date: Sun, 21 Jul 2019 10:33:29 +0200 Subject: [PATCH] st/nine: Fix uninitialized variable in BEM() tmp was not initialized. Signed-off-by: Axel Davy Part-of: --- src/gallium/frontends/nine/nine_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/frontends/nine/nine_shader.c b/src/gallium/frontends/nine/nine_shader.c index c56040a293c..7d93513ed95 100644 --- a/src/gallium/frontends/nine/nine_shader.c +++ b/src/gallium/frontends/nine/nine_shader.c @@ -2887,7 +2887,7 @@ DECL_SPECIAL(BEM) struct ureg_src src1 = tx_src_param(tx, &tx->insn.src[1]); struct ureg_src m00, m01, m10, m11, c8m; const int m = tx->insn.dst[0].idx; - struct ureg_dst tmp; + struct ureg_dst tmp = tx_scratch(tx); /* * Bump-env-matrix: * 00 is X -- 2.30.2