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/iris/iris_query.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/gallium/drivers/iris/iris_query.c') diff --git a/src/gallium/drivers/iris/iris_query.c b/src/gallium/drivers/iris/iris_query.c index 8109d49c2f7..6cc0bd59a65 100644 --- a/src/gallium/drivers/iris/iris_query.c +++ b/src/gallium/drivers/iris/iris_query.c @@ -753,7 +753,7 @@ iris_destroy_query(struct pipe_context *ctx, struct pipe_query *p_query) } -static boolean +static bool iris_begin_query(struct pipe_context *ctx, struct pipe_query *query) { struct iris_context *ice = (void *) ctx; @@ -846,10 +846,10 @@ iris_check_query_no_flush(struct iris_context *ice, struct iris_query *q) } } -static boolean +static bool iris_get_query_result(struct pipe_context *ctx, struct pipe_query *query, - boolean wait, + bool wait, union pipe_query_result *result) { struct iris_context *ice = (void *) ctx; @@ -888,7 +888,7 @@ iris_get_query_result(struct pipe_context *ctx, static void iris_get_query_result_resource(struct pipe_context *ctx, struct pipe_query *query, - boolean wait, + bool wait, enum pipe_query_value_type result_type, int index, struct pipe_resource *p_res, @@ -975,7 +975,7 @@ iris_get_query_result_resource(struct pipe_context *ctx, } static void -iris_set_active_query_state(struct pipe_context *ctx, boolean enable) +iris_set_active_query_state(struct pipe_context *ctx, bool enable) { struct iris_context *ice = (void *) ctx; @@ -1063,7 +1063,7 @@ set_predicate_for_result(struct iris_context *ice, static void iris_render_condition(struct pipe_context *ctx, struct pipe_query *query, - boolean condition, + bool condition, enum pipe_render_cond_flag mode) { struct iris_context *ice = (void *) ctx; -- cgit v1.2.3