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 <jfonseca@vmware.com>
This commit is contained in:
Roland Scheidegger
2019-05-24 02:41:12 +02:00
parent 84f3f1cf00
commit d4e8a44bf6
@@ -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;
}