Module: Mesa Branch: master Commit: 0222c550c726f0b80d083681d749e2891b11a318 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0222c550c726f0b80d083681d749e2891b11a318
Author: Axel Davy <[email protected]> Date: Sun Jul 21 10:33:29 2019 +0200 st/nine: Fix uninitialized variable in BEM() tmp was not initialized. Signed-off-by: Axel Davy <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5015> --- 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 _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
