summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/v3d/v3d_query.c
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2019-07-04 11:41:41 -0400
committerIlia Mirkin <[email protected]>2019-07-22 22:13:51 -0400
commit0e30c6b8a7e84211bb417362ec73f24ef134ae34 (patch)
tree7567deb41938d64e8fadcac7514deece8f7c1613 /src/gallium/drivers/v3d/v3d_query.c
parent365f24705f9703962b6749f4fafe7cd92d9c60b1 (diff)
gallium: switch boolean -> bool at the interface definitions
This is a relatively minimal change to adjust all the gallium interfaces to use bool instead of boolean. I tried to avoid making unrelated changes inside of drivers to flip boolean -> bool to reduce the risk of regressions (the compiler will much more easily allow "dirty" values inside a char-based boolean than a C99 _Bool). This has been build-tested on amd64 with: Gallium drivers: nouveau r300 r600 radeonsi freedreno swrast etnaviv v3d vc4 i915 svga virgl swr panfrost iris lima kmsro Gallium st: mesa xa xvmc xvmc vdpau va Signed-off-by: Ilia Mirkin <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Acked-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/v3d/v3d_query.c')
-rw-r--r--src/gallium/drivers/v3d/v3d_query.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/v3d/v3d_query.c b/src/gallium/drivers/v3d/v3d_query.c
index f68c42321a1..31b62461f90 100644
--- a/src/gallium/drivers/v3d/v3d_query.c
+++ b/src/gallium/drivers/v3d/v3d_query.c
@@ -64,7 +64,7 @@ v3d_destroy_query(struct pipe_context *pctx, struct pipe_query *query)
free(q);
}
-static boolean
+static bool
v3d_begin_query(struct pipe_context *pctx, struct pipe_query *query)
{
struct v3d_context *v3d = v3d_context(pctx);
@@ -112,9 +112,9 @@ v3d_end_query(struct pipe_context *pctx, struct pipe_query *query)
return true;
}
-static boolean
+static bool
v3d_get_query_result(struct pipe_context *pctx, struct pipe_query *query,
- boolean wait, union pipe_query_result *vresult)
+ bool wait, union pipe_query_result *vresult)
{
struct v3d_context *v3d = v3d_context(pctx);
struct v3d_query *q = (struct v3d_query *)query;
@@ -158,7 +158,7 @@ v3d_get_query_result(struct pipe_context *pctx, struct pipe_query *query,
}
static void
-v3d_set_active_query_state(struct pipe_context *pctx, boolean enable)
+v3d_set_active_query_state(struct pipe_context *pctx, bool enable)
{
struct v3d_context *v3d = v3d_context(pctx);