A lot of the fields get fully overwritten but outputs/buffers_written
are both bitfields that we set one bit at a time.
Fixes:
7c5dc0b11a11 ("glsl/nir: Populate nir_shader::xfb_info after linking varyings")
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16819>
return NULL;
nir_xfb_info *xfb =
- ralloc_size(mem_ctx, nir_xfb_info_size(info->NumOutputs));
+ rzalloc_size(mem_ctx, nir_xfb_info_size(info->NumOutputs));
xfb->output_count = info->NumOutputs;