panfrost: Free NIR of blit shaders
[mesa.git] / src / panfrost / lib / pan_blit.c
index 6002278d4913e46dde3935d0f914cfcc409e6f17..deec17ba720b785a148d4444c8bee2e2bc155044 100644 (file)
@@ -101,6 +101,7 @@ panfrost_build_blit_shader(panfrost_program *program, unsigned gpu_id, gl_frag_r
                 nir_store_var(b, c_out, nir_channel(b, &tex->dest.ssa, 0), 0xFF);
 
         midgard_compile_shader_nir(shader, program, false, 0, gpu_id, false, true);
+        ralloc_free(shader);
 }
 
 /* Compile and upload all possible blit shaders ahead-of-time to reduce draw