llvmpipe: remove unused subpixel_snap() and fixed_to_float()

Fixes the following Clang warnings.

lp_setup_tri.c:55:1: warning: unused function 'subpixel_snap' [-Wunused-function]
subpixel_snap(float a)
^
lp_setup_tri.c:61:1: warning: unused function 'fixed_to_float' [-Wunused-function]
fixed_to_float(int a)
^

v2: - do not remove subpixel_snap() (use !PIPE_ARCH_SSE instead)

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
Samuel Pitoiset 2017-04-11 14:30:42 +02:00
parent 12647533fa
commit fbe2ff7740
1 changed files with 3 additions and 6 deletions

View File

@ -51,18 +51,15 @@
#include "util/u_pwr8.h"
#endif
#if !defined(PIPE_ARCH_SSE)
static inline int
subpixel_snap(float a)
{
return util_iround(FIXED_ONE * a);
}
static inline float
fixed_to_float(int a)
{
return a * (1.0f / FIXED_ONE);
}
#endif
/* Position and area in fixed point coordinates */
struct fixed_position {