summaryrefslogtreecommitdiff
path: root/src/mesa/tnl
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2018-09-10 11:31:49 -0700
committerDylan Baker <dylan@pnwbakers.com>2020-04-21 11:09:03 -0700
commit9ee6e78a8716eed09a088dad2d6153373423a565 (patch)
treedb722034dfc9cb2097c5222d15ab98e71e5c7a7f /src/mesa/tnl
parent369f00259113d5c157b88d52bd002d292c21fedf (diff)
Replace IS_INF_OR_NAN with util_is_inf_or_nan
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3024>
Diffstat (limited to 'src/mesa/tnl')
-rw-r--r--src/mesa/tnl/t_split_copy.c2
-rw-r--r--src/mesa/tnl/t_vb_cliptmp.h8
-rw-r--r--src/mesa/tnl/t_vb_program.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/tnl/t_split_copy.c b/src/mesa/tnl/t_split_copy.c
index 87c0020e311..f1d8274766a 100644
--- a/src/mesa/tnl/t_split_copy.c
+++ b/src/mesa/tnl/t_split_copy.c
@@ -267,7 +267,7 @@ elt(struct copy_context *copy, GLuint elt_idx)
GLuint k;
GLfloat *f = (GLfloat *) srcptr;
for (k = 0; k < srcarray->Size; k++) {
- assert(!IS_INF_OR_NAN(f[k]));
+ assert(!util_is_inf_or_nan(f[k]));
assert(f[k] <= 1.0e20 && f[k] >= -1.0e20);
}
}
diff --git a/src/mesa/tnl/t_vb_cliptmp.h b/src/mesa/tnl/t_vb_cliptmp.h
index c6546668806..9f2d5161d99 100644
--- a/src/mesa/tnl/t_vb_cliptmp.h
+++ b/src/mesa/tnl/t_vb_cliptmp.h
@@ -206,10 +206,10 @@ TAG(clip_tri)( struct gl_context *ctx, GLuint v0, GLuint v1, GLuint v2, GLubyte
printf(" %u: %u: %f, %f, %f, %f\n",
i, j,
coord[j][0], coord[j][1], coord[j][2], coord[j][3]);
- assert(!IS_INF_OR_NAN(coord[j][0]));
- assert(!IS_INF_OR_NAN(coord[j][1]));
- assert(!IS_INF_OR_NAN(coord[j][2]));
- assert(!IS_INF_OR_NAN(coord[j][3]));
+ assert(!util_is_inf_or_nan(coord[j][0]));
+ assert(!util_is_inf_or_nan(coord[j][1]));
+ assert(!util_is_inf_or_nan(coord[j][2]));
+ assert(!util_is_inf_or_nan(coord[j][3]));
}
}
diff --git a/src/mesa/tnl/t_vb_program.c b/src/mesa/tnl/t_vb_program.c
index 099d37eed72..7a49e393464 100644
--- a/src/mesa/tnl/t_vb_program.c
+++ b/src/mesa/tnl/t_vb_program.c
@@ -53,7 +53,7 @@
static inline void
check_float(float x)
{
- assert(!IS_INF_OR_NAN(x));
+ assert(!util_is_inf_or_nan(x));
assert(1.0e-15 <= x && x <= 1.0e15);
}
#endif