From 866a8da2a46d1e8722398450384df798619a3ca9 Mon Sep 17 00:00:00 2001 From: Mark Menzynski Date: Tue, 28 Jan 2020 13:20:01 +0100 Subject: [PATCH] tgsi/util: Change boolean for bool MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit I was getting errors with "boolean" when compiling. This patch changes boolean to bool from . Reviewed-by: Marek Olšák Reviewed-by: Karol Herbst Signed-off-by: Mark Menzynski Tested-by: Marge Bot Part-of: --- src/gallium/auxiliary/tgsi/tgsi_util.c | 2 +- src/gallium/auxiliary/tgsi/tgsi_util.h | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gallium/auxiliary/tgsi/tgsi_util.c b/src/gallium/auxiliary/tgsi/tgsi_util.c index 1e5582ba273..e1b604cff0e 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_util.c +++ b/src/gallium/auxiliary/tgsi/tgsi_util.c @@ -537,7 +537,7 @@ tgsi_util_get_shadow_ref_src_index(enum tgsi_texture_type tgsi_tex) } -boolean +bool tgsi_is_shadow_target(enum tgsi_texture_type target) { switch (target) { diff --git a/src/gallium/auxiliary/tgsi/tgsi_util.h b/src/gallium/auxiliary/tgsi/tgsi_util.h index 686b90f467e..6dc576b1a00 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_util.h +++ b/src/gallium/auxiliary/tgsi/tgsi_util.h @@ -28,6 +28,7 @@ #ifndef TGSI_UTIL_H #define TGSI_UTIL_H +#include #include "pipe/p_shader_tokens.h" #if defined __cplusplus @@ -84,11 +85,11 @@ tgsi_util_get_texture_coord_dim(enum tgsi_texture_type tgsi_tex); int tgsi_util_get_shadow_ref_src_index(enum tgsi_texture_type tgsi_tex); -boolean +bool tgsi_is_shadow_target(enum tgsi_texture_type target); -static inline boolean +static inline bool tgsi_is_msaa_target(enum tgsi_texture_type target) { return (target == TGSI_TEXTURE_2D_MSAA || -- 2.30.2