diff --git a/.pick_status.json b/.pick_status.json index 314f29f553e..6668cbbb22f 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -4882,7 +4882,7 @@ "description": "intel: fix leaking memory on shader creation", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "ef5bce9253e2221ef8df0764447cb02c02fa2a16" }, diff --git a/src/intel/blorp/blorp_nir_builder.h b/src/intel/blorp/blorp_nir_builder.h index 6fbe1deb5ad..17da4d60086 100644 --- a/src/intel/blorp/blorp_nir_builder.h +++ b/src/intel/blorp/blorp_nir_builder.h @@ -30,7 +30,7 @@ blorp_nir_init_shader(nir_builder *b, const char *name) { *b = nir_builder_init_simple_shader(stage, NULL, "%s", name ? name : ""); - ralloc_adopt(mem_ctx, b->shader); + ralloc_steal(mem_ctx, b->shader); if (stage == MESA_SHADER_FRAGMENT) b->shader->info.fs.origin_upper_left = true; } diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c index c48350e5a11..8a1a6779c0e 100644 --- a/src/intel/compiler/brw_nir.c +++ b/src/intel/compiler/brw_nir.c @@ -1504,7 +1504,7 @@ brw_nir_create_passthrough_tcs(void *mem_ctx, const struct brw_compiler *compile { nir_builder b = nir_builder_init_simple_shader(MESA_SHADER_TESS_CTRL, options, "passthrough TCS"); - ralloc_adopt(mem_ctx, b.shader); + ralloc_steal(mem_ctx, b.shader); nir_shader *nir = b.shader; nir_variable *var; nir_ssa_def *load;