mesa/src/gallium/drivers/lima
Erico Nunes d939f5d463 lima: fix nir shader memory leak
Fix memory leak on allocation for nir shader, reported by valgrind.

3,502 (480 direct, 3,022 indirect) bytes in 1 blocks are definitely lost in loss record 77 of 84
   at 0x48483F8: malloc (in /usr/lib/valgrind/vgpreload_memcheck-arm64-linux.so)
   by 0x5750817: ralloc_size (ralloc.c:119)
   by 0x5750977: rzalloc_size (ralloc.c:151)
   by 0x575C173: nir_shader_create (nir.c:45)
   by 0x5763ACB: nir_shader_clone (nir_clone.c:728)
   by 0x55D5003: st_create_fp_variant (st_program.c:1242)
   by 0x55D789F: st_get_fp_variant (st_program.c:1522)
   by 0x55D789F: st_get_fp_variant (st_program.c:1507)
   by 0x56400C3: st_update_fp (st_atom_shader.c:163)
   by 0x563D333: st_validate_state (st_atom.c:261)
   by 0x55D07CB: prepare_draw (st_draw.c:132)
   by 0x55D08DF: st_draw_vbo (st_draw.c:184)
   by 0x55576CB: _mesa_draw_arrays (draw.c:374)
   by 0x55576CB: _mesa_draw_arrays (draw.c:351)

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
2019-11-07 23:03:01 +00:00
..
ir lima: add support for gl_PointSize 2019-11-05 17:44:56 -08:00
standalone lima: Fix compiler warning in standalone compiler 2019-10-16 15:13:13 +00:00
Android.mk lima/ppir: add NIR pass to split varying loads 2019-09-26 18:51:10 -07:00
lima_bo.c lima: ignore flags while looking for BO in cache 2019-11-01 13:12:07 -07:00
lima_bo.h lima: implement BO cache 2019-09-22 19:20:59 -07:00
lima_context.c lima: implement BO cache 2019-09-22 19:20:59 -07:00
lima_context.h lima: add support for gl_PointSize 2019-11-05 17:44:56 -08:00
lima_draw.c lima: add support for gl_PointSize 2019-11-05 17:44:56 -08:00
lima_fence.c gallium: switch boolean -> bool at the interface definitions 2019-07-22 22:13:51 -04:00
lima_fence.h
lima_format.c lima: move format handling to unified place 2019-08-25 11:52:29 +08:00
lima_format.h lima: move format handling to unified place 2019-08-25 11:52:29 +08:00
lima_program.c lima: fix nir shader memory leak 2019-11-07 23:03:01 +00:00
lima_program.h lima: Reintroduce the standalone compiler 2019-07-18 14:33:23 +02:00
lima_query.c gallium: switch boolean -> bool at the interface definitions 2019-07-22 22:13:51 -04:00
lima_resource.c lima: add layer_stride field to lima_resource struct 2019-10-31 06:29:31 +00:00
lima_resource.h lima: add layer_stride field to lima_resource struct 2019-10-31 06:29:31 +00:00
lima_screen.c lima: add support for gl_PointSize 2019-11-05 17:44:56 -08:00
lima_screen.h lima: add debug prints for BO cache 2019-11-01 13:11:47 -07:00
lima_state.c lima: implement EGL_KHR_partial_update 2019-09-23 09:48:15 +08:00
lima_submit.c lima: implement BO cache 2019-09-22 19:20:59 -07:00
lima_submit.h
lima_texture.c lima: add cubemap support 2019-10-31 06:29:31 +00:00
lima_texture.h lima: add cubemap support 2019-10-31 06:29:31 +00:00
lima_util.c
lima_util.h
meson.build lima/ppir: add NIR pass to split varying loads 2019-09-26 18:51:10 -07:00