diff options
author | Roland Scheidegger <[email protected]> | 2019-05-24 02:41:12 +0200 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2019-05-24 19:22:50 +0200 |
commit | d4e8a44bf6403109f0e6e22650b0379d305712db (patch) | |
tree | f78cd66ccc34f8a019885311da32010db0708373 /src/gallium/auxiliary | |
parent | 84f3f1cf00fec036c9f503ce46e8bbcc3f9b4ae9 (diff) |
gallivm: fix default cbuf info.
The default null_output really needs to be static, otherwise the values
we'll eventually get later are doubly random (they are not initialized,
and even if they were it's a pointer to a local stack variable).
VMware bug 2349556.
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_tgsi_info.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_info.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_info.c index b4e3c2fbc84..9fc9b8c77ec 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_info.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_info.c @@ -608,7 +608,7 @@ finished: */ for (index = 0; index < PIPE_MAX_COLOR_BUFS; ++index) { - const struct lp_tgsi_channel_info null_output[4]; + static const struct lp_tgsi_channel_info null_output[4]; info->cbuf[index] = null_output; } |