From: Axel Davy Date: Sun, 21 Jul 2019 08:33:29 +0000 (+0200) Subject: st/nine: Fix uninitialized variable in BEM() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0222c550c726f0b80d083681d749e2891b11a318;p=mesa.git st/nine: Fix uninitialized variable in BEM() tmp was not initialized. Signed-off-by: Axel Davy Part-of: --- 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