gallium/u_threaded: Add to_call() helper
authorRob Clark <robdclark@chromium.org>
Tue, 11 May 2021 15:24:47 +0000 (08:24 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 12 May 2021 16:09:51 +0000 (16:09 +0000)
commit3b69cbe06ce69d7bed2b140b508279102ea14764
treeac58944bed6f417684152f4d1824d9ea8814f435
parente8640fef9089bb31a9e602a8894ae4fe84086118
gallium/u_threaded: Add to_call() helper

Add helper for casting the call, which when asserts are enabled will
sanity check the call size to detect corruption.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10753>
src/gallium/auxiliary/util/u_threaded_context.c