[Mesa-dev] [PATCH 6/8] tgsi/util: Change boolean for bool
Mark Menzynski
mmenzyns at redhat.com
Mon Feb 17 17:40:37 UTC 2020
I was getting errors with "boolean" when compiling. This patch changes
boolean to bool from <stdbool.h>.
Signed-off-by: Mark Menzynski <mmenzyns at redhat.com>
---
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 <stdbool.h>
#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.21.1
More information about the mesa-dev
mailing list