From 0e30c6b8a7e84211bb417362ec73f24ef134ae34 Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Thu, 4 Jul 2019 11:41:41 -0400 Subject: gallium: switch boolean -> bool at the interface definitions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Marek Olšák Acked-by: Alyssa Rosenzweig --- src/gallium/drivers/lima/lima_query.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gallium/drivers/lima/lima_query.c') diff --git a/src/gallium/drivers/lima/lima_query.c b/src/gallium/drivers/lima/lima_query.c index 2590ac1bad8..92a047c306b 100644 --- a/src/gallium/drivers/lima/lima_query.c +++ b/src/gallium/drivers/lima/lima_query.c @@ -54,7 +54,7 @@ lima_destroy_query(struct pipe_context *ctx, struct pipe_query *query) free(query); } -static boolean +static bool lima_begin_query(struct pipe_context *ctx, struct pipe_query *query) { return true; @@ -66,9 +66,9 @@ lima_end_query(struct pipe_context *ctx, struct pipe_query *query) return true; } -static boolean +static bool lima_get_query_result(struct pipe_context *ctx, struct pipe_query *query, - boolean wait, union pipe_query_result *vresult) + bool wait, union pipe_query_result *vresult) { uint64_t *result = &vresult->u64; @@ -78,7 +78,7 @@ lima_get_query_result(struct pipe_context *ctx, struct pipe_query *query, } static void -lima_set_active_query_state(struct pipe_context *pipe, boolean enable) +lima_set_active_query_state(struct pipe_context *pipe, bool enable) { } -- cgit v1.2.3