Mesa (master): zink: use true/false instead of TRUE/FALSE

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Nov 29 08:12:37 UTC 2019


Module: Mesa
Branch: master
Commit: 927363e0b9d267cf11d601fa65a90677cdfa7737
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=927363e0b9d267cf11d601fa65a90677cdfa7737

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Thu Nov 28 18:41:05 2019 +0100

zink: use true/false instead of TRUE/FALSE

Reviewed-by: Dave Airlie <airlied at redhat.com>

---

 src/gallium/drivers/zink/zink_screen.c | 32 ++++++++++++++++----------------
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c
index 22f96fda4cf..cff37b9b37b 100644
--- a/src/gallium/drivers/zink/zink_screen.c
+++ b/src/gallium/drivers/zink/zink_screen.c
@@ -486,7 +486,7 @@ zink_is_format_supported(struct pipe_screen *pscreen,
 
    VkFormat vkformat = zink_get_format(screen, format);
    if (vkformat == VK_FORMAT_UNDEFINED)
-      return FALSE;
+      return false;
 
    if (sample_count >= 1) {
       VkSampleCountFlagBits sample_mask = vk_sample_count_flags(sample_count);
@@ -495,33 +495,33 @@ zink_is_format_supported(struct pipe_screen *pscreen,
          if (util_format_has_depth(desc)) {
             if (bind & PIPE_BIND_DEPTH_STENCIL &&
                 (screen->props.limits.framebufferDepthSampleCounts & sample_mask) != sample_mask)
-               return FALSE;
+               return false;
             if (bind & PIPE_BIND_SAMPLER_VIEW &&
                 (screen->props.limits.sampledImageDepthSampleCounts & sample_mask) != sample_mask)
-               return FALSE;
+               return false;
          }
          if (util_format_has_stencil(desc)) {
             if (bind & PIPE_BIND_DEPTH_STENCIL &&
                 (screen->props.limits.framebufferStencilSampleCounts & sample_mask) != sample_mask)
-               return FALSE;
+               return false;
             if (bind & PIPE_BIND_SAMPLER_VIEW &&
                 (screen->props.limits.sampledImageStencilSampleCounts & sample_mask) != sample_mask)
-               return FALSE;
+               return false;
          }
       } else if (util_format_is_pure_integer(format)) {
          if (bind & PIPE_BIND_RENDER_TARGET &&
              !(screen->props.limits.framebufferColorSampleCounts & sample_mask))
-            return FALSE;
+            return false;
          if (bind & PIPE_BIND_SAMPLER_VIEW &&
              !(screen->props.limits.sampledImageIntegerSampleCounts & sample_mask))
-            return FALSE;
+            return false;
       } else {
          if (bind & PIPE_BIND_RENDER_TARGET &&
              !(screen->props.limits.framebufferColorSampleCounts & sample_mask))
-            return FALSE;
+            return false;
          if (bind & PIPE_BIND_SAMPLER_VIEW &&
              !(screen->props.limits.sampledImageColorSampleCounts & sample_mask))
-            return FALSE;
+            return false;
       }
    }
 
@@ -531,34 +531,34 @@ zink_is_format_supported(struct pipe_screen *pscreen,
    if (target == PIPE_BUFFER) {
       if (bind & PIPE_BIND_VERTEX_BUFFER &&
           !(props.bufferFeatures & VK_FORMAT_FEATURE_VERTEX_BUFFER_BIT))
-         return FALSE;
+         return false;
    } else {
       /* all other targets are texture-targets */
       if (bind & PIPE_BIND_RENDER_TARGET &&
           !(props.optimalTilingFeatures & VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT))
-         return FALSE;
+         return false;
 
       if (bind & PIPE_BIND_BLENDABLE &&
          !(props.optimalTilingFeatures & VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT))
-        return FALSE;
+        return false;
 
       if (bind & PIPE_BIND_SAMPLER_VIEW &&
           !(props.optimalTilingFeatures & VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT))
-         return FALSE;
+         return false;
 
       if (bind & PIPE_BIND_DEPTH_STENCIL &&
           !(props.optimalTilingFeatures & VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT))
-         return FALSE;
+         return false;
    }
 
    if (util_format_is_compressed(format)) {
       const struct util_format_description *desc = util_format_description(format);
       if (desc->layout == UTIL_FORMAT_LAYOUT_BPTC &&
           !screen->feats.textureCompressionBC)
-         return FALSE;
+         return false;
    }
 
-   return TRUE;
+   return true;
 }
 
 static void




More information about the mesa-commit mailing list