gallivm: fix default cbuf info.

Submitted by Jose Fonseca on May 24, 2019, 8:54 a.m.

Details

Message ID SN2PR05MB2461821AAAF448123E75CA99B6020@SN2PR05MB2461.namprd05.prod.outlook.com
State New
Headers show
Series "gallivm: fix default cbuf info." ( rev: 2 ) in Mesa

Not browsing as part of any series.

Commit Message

Jose Fonseca May 24, 2019, 8:54 a.m.
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>

Thanks.

Jose

Patch hide | download patch | download mbox

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_info.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_info.c
index b4e3c2fbc8..9fc9b8c77e 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;
    }