gallivm: rework debug printf hook to use global mapping.
authorDave Airlie <airlied@redhat.com>
Fri, 15 May 2020 00:05:55 +0000 (10:05 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 10 Jun 2020 20:05:40 +0000 (06:05 +1000)
commit333ee94285ac453b9d75ce93b01bc26e48bf96d7
treeb68d4cae48551f2dc4b605e6da8e53325f528a15
parentf511d2a553377a58b5eea6c6d1170fcc4972237a
gallivm: rework debug printf hook to use global mapping.

Cached shaders require relinking, so hardcoding the pointer
can't work. This switches out the printf code to use new
proper API.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5049>
src/gallium/auxiliary/gallivm/lp_bld_init.c
src/gallium/auxiliary/gallivm/lp_bld_init.h
src/gallium/auxiliary/gallivm/lp_bld_printf.c