diff --git a/.pick_status.json b/.pick_status.json index f3270e09090..576a7764d35 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -44,7 +44,7 @@ "description": "zink: zero allocate resident_defs array in ntv", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "73ef54e34242fa59803a3a89b5a6eb92053e917e", "notes": null diff --git a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c index dc964b85024..4cc326dc628 100644 --- a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c +++ b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c @@ -4705,7 +4705,7 @@ nir_to_spirv(struct nir_shader *s, const struct zink_shader_info *sinfo, uint32_ /* this could be huge, so only alloc if needed since it's extremely unlikely to * ever be used by anything except cts */ - ctx.resident_defs = ralloc_array_size(ctx.mem_ctx, + ctx.resident_defs = rzalloc_array_size(ctx.mem_ctx, sizeof(SpvId), entry->ssa_alloc); if (!ctx.resident_defs) goto fail;