summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/softpipe/sp_setup.c
diff options
context:
space:
mode:
authorYonggang Luo <luoyonggang@gmail.com>2023-06-22 23:58:38 +0800
committerYonggang Luo <luoyonggang@gmail.com>2023-06-27 18:18:28 +0800
commit05b840521ab3e621d1664cd91d839914ddabd0db (patch)
tree52656050b3e24673b3c994b4791db1afa011d0d8 /src/gallium/drivers/softpipe/sp_setup.c
parent49e84fdad2b453460100ea9253015eec437f5405 (diff)
treewide: Replace the usage of TRUE/FALSE with true/false
this is a separate patch as it's won't affect the code style Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Acked-by: David Heidelberg <david.heidelberg@collabora.com> Acked-by: Marek Olšák <marek.olsak@amd.com> Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23577>
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_setup.c')
-rw-r--r--src/gallium/drivers/softpipe/sp_setup.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gallium/drivers/softpipe/sp_setup.c b/src/gallium/drivers/softpipe/sp_setup.c
index 850fb0d4989..c3c660ceed2 100644
--- a/src/gallium/drivers/softpipe/sp_setup.c
+++ b/src/gallium/drivers/softpipe/sp_setup.c
@@ -372,7 +372,7 @@ setup_sort_vertices(struct setup_context *setup,
__func__, setup->oneoverarea, area, det );
*/
if (util_is_inf_or_nan(setup->oneoverarea))
- return FALSE;
+ return false;
}
/* We need to know if this is a front or back-facing triangle for:
@@ -388,10 +388,10 @@ setup_sort_vertices(struct setup_context *setup,
unsigned face = setup->facing == 0 ? PIPE_FACE_FRONT : PIPE_FACE_BACK;
if (face & setup->cull_face)
- return FALSE;
+ return false;
}
- return TRUE;
+ return true;
}
@@ -904,7 +904,7 @@ setup_line_coefficients(struct setup_context *setup,
/* NOTE: this is not really area but something proportional to it */
area = setup->emaj.dx * setup->emaj.dx + setup->emaj.dy * setup->emaj.dy;
if (area == 0.0f || util_is_inf_or_nan(area))
- return FALSE;
+ return false;
setup->oneoverarea = 1.0f / area;
/* z and w are done by linear interpolation:
@@ -956,7 +956,7 @@ setup_line_coefficients(struct setup_context *setup,
setup->coef[fragSlot].dady[0] = 0.0;
}
}
- return TRUE;
+ return true;
}