Mesa (main): pvr: replace p_compiler.h boolean with stdbool

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Apr 21 13:00:47 UTC 2022


Module: Mesa
Branch: main
Commit: e0e5cbd5a4a5edc442e2b7277b5893a7fbdfd597
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e0e5cbd5a4a5edc442e2b7277b5893a7fbdfd597

Author: Frank Binns <frank.binns at imgtec.com>
Date:   Wed Apr 13 12:02:17 2022 +0100

pvr: replace p_compiler.h boolean with stdbool

Signed-off-by: Frank Binns <frank.binns at imgtec.com>
Reviewed-by: Alyssa Rosenzweig <alyssa at collabora.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16037>

---

 src/imagination/vulkan/vk_format.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/imagination/vulkan/vk_format.h b/src/imagination/vulkan/vk_format.h
index e4350cdee40..5aa5e36f8d6 100644
--- a/src/imagination/vulkan/vk_format.h
+++ b/src/imagination/vulkan/vk_format.h
@@ -32,6 +32,7 @@
 #ifndef VK_FORMAT_H
 #define VK_FORMAT_H
 
+#include <stdbool.h>
 #include <util/format/u_format.h>
 #include <vulkan/util/vk_format.h>
 
@@ -54,7 +55,7 @@ vk_format_is_alpha_on_msb(VkFormat vk_format)
 #endif
 }
 
-static inline boolean
+static inline bool
 vk_format_is_pure_integer(VkFormat vk_format)
 {
    return util_format_is_pure_integer(vk_format_to_pipe_format(vk_format));
@@ -69,7 +70,7 @@ vk_format_get_channel_width(VkFormat vk_format, uint32_t channel)
    return desc->channel[channel].size;
 }
 
-static inline boolean
+static inline bool
 vk_format_has_32bit_component(VkFormat vk_format)
 {
    const struct util_format_description *desc =
@@ -93,7 +94,7 @@ vk_format_get_component_bits(VkFormat vk_format,
                                          component);
 }
 
-static inline boolean
+static inline bool
 vk_format_is_normalized(VkFormat vk_format)
 {
    const struct util_format_description *desc =



More information about the mesa-commit mailing list