nir/glsl: Use rzalloc for nir_xfb_info

A lot of the fields get fully overwritten but outputs/buffers_written
are both bitfields that we set one bit at a time.

Fixes: 7c5dc0b11a ("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>
This commit is contained in:
Jason Ekstrand 2022-06-01 13:26:46 -05:00 committed by Marge Bot
parent fc5a3e1e37
commit 7c876a6b2f
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ gl_to_nir_xfb_info(struct gl_transform_feedback_info *info, void *mem_ctx)
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;