Module: Mesa Branch: main Commit: a7c5645dd3af12caf4ece1603c7712d75f91af86 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a7c5645dd3af12caf4ece1603c7712d75f91af86
Author: Thomas H.P. Andersen <[email protected]> Date: Sat Dec 18 20:35:23 2021 +0100 gallium/tgsi_exec: drop unused function Introduced in 9ca6cf0f and last usage dropped in 31369987 Fixes a compile warning with clang Reviewed-by: Emma Anholt <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14252> --- src/gallium/auxiliary/tgsi/tgsi_exec.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.c b/src/gallium/auxiliary/tgsi/tgsi_exec.c index a8446ff2735..b9262d25bab 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_exec.c +++ b/src/gallium/auxiliary/tgsi/tgsi_exec.c @@ -975,23 +975,6 @@ static const union tgsi_exec_channel M128Vec = { {-128.0f, -128.0f, -128.0f, -128.0f} }; - -/** - * Assert that none of the float values in 'chan' are infinite or NaN. - * NaN and Inf may occur normally during program execution and should - * not lead to crashes, etc. But when debugging, it's helpful to catch - * them. - */ -static inline void -check_inf_or_nan(const union tgsi_exec_channel *chan) -{ - assert(!util_is_inf_or_nan((chan)->f[0])); - assert(!util_is_inf_or_nan((chan)->f[1])); - assert(!util_is_inf_or_nan((chan)->f[2])); - assert(!util_is_inf_or_nan((chan)->f[3])); -} - - #ifdef DEBUG static void print_chan(const char *msg, const union tgsi_exec_channel *chan)
