summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/drivers/softpipe/sp_query.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-04-02 09:30:07 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-04-02 09:30:07 +0000
commitf54e142455cb3c9d1662dae7e096a32a47e5409b (patch)
tree440ecd46269f0eac25e349e1ed58f246490c5e26 /lib/mesa/src/gallium/drivers/softpipe/sp_query.c
parent36d8503c27530f68d655d3ef77a6eaa4dfd8ad65 (diff)
Import Mesa 23.3.6
Diffstat (limited to 'lib/mesa/src/gallium/drivers/softpipe/sp_query.c')
-rw-r--r--lib/mesa/src/gallium/drivers/softpipe/sp_query.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/mesa/src/gallium/drivers/softpipe/sp_query.c b/lib/mesa/src/gallium/drivers/softpipe/sp_query.c
index 6a6fa4952..1a2b7d17a 100644
--- a/lib/mesa/src/gallium/drivers/softpipe/sp_query.c
+++ b/lib/mesa/src/gallium/drivers/softpipe/sp_query.c
@@ -310,16 +310,16 @@ is_result_nonzero(struct pipe_query *q,
* Called by rendering function to check rendering is conditional.
* \return TRUE if we should render, FALSE if we should skip rendering
*/
-boolean
+bool
softpipe_check_render_cond(struct softpipe_context *sp)
{
struct pipe_context *pipe = &sp->pipe;
- boolean b, wait;
+ bool b, wait;
union pipe_query_result result;
memset(&result, 0, sizeof(union pipe_query_result));
if (!sp->render_cond_query) {
- return TRUE; /* no query predicate, draw normally */
+ return true; /* no query predicate, draw normally */
}
wait = (sp->render_cond_mode == PIPE_RENDER_COND_WAIT ||
@@ -330,7 +330,7 @@ softpipe_check_render_cond(struct softpipe_context *sp)
if (b)
return !is_result_nonzero(sp->render_cond_query, &result) == sp->render_cond_cond;
else
- return TRUE;
+ return true;
}