nir: free dead_ctx in case of no progress

Fixes a leak:

  ==7576== 320 (48 direct, 272 indirect) bytes in 1 blocks are definitely lost in loss record 26 of 26
  ==7576==    at 0x4C2EE3B: malloc (vg_replace_malloc.c:309)
  ==7576==    by 0x53EF0E4: ralloc_size (ralloc.c:119)
  ==7576==    by 0x53EF0C2: ralloc_context (ralloc.c:113)
  ==7576==    by 0x5471F64: nir_split_per_member_structs (nir_split_per_member_structs.c:176)
  ==7576==    by 0x51288CF: anv_shader_compile_to_nir (anv_pipeline.c:216)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
25 jobs for !392 with misc-leak-fixes in 15 minutes and 9 seconds (queued for 11 minutes and 3 seconds)
detached
Status Name Job ID Coverage
  Containers Build
passed ubuntu #157824

00:00:53

 
  Build+Test
failed make-gallium-drivers-other #157839

00:00:06

failed make-gallium-drivers-radeonsi #157838

00:00:05

failed make-gallium-drivers-swr #157837

00:00:06

failed make-gallium-st-clover-llvm-39 #157840

00:00:06

passed make-gallium-st-clover-llvm-4 #157841

00:07:15

failed make-gallium-st-clover-llvm-5 #157842

00:00:06

failed make-gallium-st-clover-llvm-6 #157843

00:00:05

failed make-gallium-st-clover-llvm-7 #157844

00:00:06

failed make-gallium-st-other #157845

00:00:06

failed make-loader-classic-dri #157836

00:00:05

failed make-vulkan #157835

00:00:06

failed meson-gallium-clover-llvm5 #157831

00:00:06

failed meson-gallium-clover-llvm6 #157832

00:00:05

failed meson-gallium-clover-llvm7 #157833

00:00:05

failed meson-gallium-drivers-other #157830

00:00:05

failed meson-gallium-radeonsi #157829

00:00:09

failed meson-gallium-st-other #157834

00:00:05

passed meson-gallium-swr #157828

00:13:13

passed meson-glvnd #157827

00:07:24

passed meson-loader-classic-dri #157826

00:07:10

passed meson-vulkan #157825

00:03:38

failed scons-llvm #157847

00:00:06

failed scons-nollvm #157846

00:00:06

failed scons-swr #157848

00:00:06

 
Name Stage Failure
failed
scons-swr Build+Test
No job log
failed
meson-gallium-drivers-other Build+Test
No job log
failed
meson-gallium-clover-llvm5 Build+Test
No job log
failed
scons-nollvm Build+Test
No job log
failed
make-gallium-st-clover-llvm-5 Build+Test
No job log
failed
meson-gallium-clover-llvm7 Build+Test
No job log
failed
meson-gallium-radeonsi Build+Test
No job log
failed
meson-gallium-clover-llvm6 Build+Test
No job log
failed
make-vulkan Build+Test
No job log
failed
make-loader-classic-dri Build+Test
No job log
failed
scons-llvm Build+Test
No job log
failed
make-gallium-drivers-swr Build+Test
No job log
failed
make-gallium-drivers-radeonsi Build+Test
No job log
failed
make-gallium-st-other Build+Test
No job log
failed
meson-gallium-st-other Build+Test
No job log
failed
make-gallium-drivers-other Build+Test
No job log
failed
make-gallium-st-clover-llvm-39 Build+Test
No job log
failed
make-gallium-st-clover-llvm-6 Build+Test
No job log
failed
make-gallium-st-clover-llvm-7 Build+Test
No job log