From a7c5645dd3af12caf4ece1603c7712d75f91af86 Mon Sep 17 00:00:00 2001 From: "Thomas H.P. Andersen" Date: Sat, 18 Dec 2021 20:35:23 +0100 Subject: [PATCH] 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 Part-of: --- 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)