diff --git a/.pick_status.json b/.pick_status.json index 62264175c70..c91a5769d7b 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -580,7 +580,7 @@ "description": "panfrost: Free cloned NIR shader", "nominated": true, "nomination_type": 0, - "resolution": 0, + "resolution": 1, "master_sha": null, "because_sha": null }, diff --git a/src/gallium/drivers/panfrost/pan_assemble.c b/src/gallium/drivers/panfrost/pan_assemble.c index 4a3bf793913..5db02edd931 100644 --- a/src/gallium/drivers/panfrost/pan_assemble.c +++ b/src/gallium/drivers/panfrost/pan_assemble.c @@ -287,4 +287,8 @@ panfrost_shader_compile(struct panfrost_context *ctx, var->data.precision, var->data.location_frac); } } + + /* In both clone and tgsi_to_nir paths, the shader is ralloc'd against + * a NULL context */ + ralloc_free(s); }