Skip to content

gallivm: add coro malloc hooks earlier and always.

Dave Airlie requested to merge airlied/mesa:gallivm-fix-asm-dump into main

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.")

Merge request reports