st/nine: Fix uninitialized variable in BEM()
authorAxel Davy <davyaxel0@gmail.com>
Sun, 21 Jul 2019 08:33:29 +0000 (10:33 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 15 May 2020 15:43:57 +0000 (15:43 +0000)
tmp was not initialized.

Signed-off-by: Axel Davy <davyaxel0@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5015>

src/gallium/frontends/nine/nine_shader.c

index c56040a293c0b21ddfe82878a9d14838b1d7d378..7d93513ed9506407d43fb7ecb227a9392d5aceac 100644 (file)
@@ -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