gallivm: add coro malloc hooks earlier and always.
This fixes GALLIVM_DEBUG=asm for compute shaders, changing the hooks after dumping causes a segfault because the memory has already been finalised. Just add the hooks always, and before dumping anything. Fixes: f511d2a5 ("gallivm: rework coroutine malloc/free callouts.") Reviewed-by:Roland Scheidegger <sroland@vmware.com> Part-of: <mesa/mesa!19714> (cherry picked from commit fb7de303)
- .pick_status.json 1 addition, 1 deletion.pick_status.json
- src/gallium/auxiliary/draw/draw_llvm.c 0 additions, 2 deletionssrc/gallium/auxiliary/draw/draw_llvm.c
- src/gallium/auxiliary/gallivm/lp_bld_init.c 4 additions, 0 deletionssrc/gallium/auxiliary/gallivm/lp_bld_init.c
- src/gallium/drivers/llvmpipe/lp_state_cs.c 0 additions, 3 deletionssrc/gallium/drivers/llvmpipe/lp_state_cs.c