aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2019-07-21 10:33:29 +0200
committerMarge Bot <[email protected]>2020-05-15 15:43:57 +0000
commit0222c550c726f0b80d083681d749e2891b11a318 (patch)
tree8f62d4ac44cd7d5a47a607f507e4e0dd3d5d4749 /src
parent5d904d27491aab489d54746bc6650b27c5927c39 (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/frontends/nine/nine_shader.c2
1 files changed, 1 insertions, 1 deletions
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