Mesa (main): i915g: Add curly braces for normal mesa style (and helps clang-format)

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jun 30 17:49:20 UTC 2021


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

Author: Emma Anholt <emma at anholt.net>
Date:   Tue Jun 29 21:01:47 2021 -0700

i915g: Add curly braces for normal mesa style (and helps clang-format)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11648>

---

 src/gallium/drivers/i915/i915_state_sampler.c | 23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)

diff --git a/src/gallium/drivers/i915/i915_state_sampler.c b/src/gallium/drivers/i915/i915_state_sampler.c
index fdbc2e240d6..11efa05d54a 100644
--- a/src/gallium/drivers/i915/i915_state_sampler.c
+++ b/src/gallium/drivers/i915/i915_state_sampler.c
@@ -85,19 +85,20 @@ update_sampler(struct i915_context *i915, uint32_t unit,
       state[0] |= SS2_COLORSPACE_CONVERSION;
 
    if (pt->format == PIPE_FORMAT_B8G8R8A8_SRGB ||
-       pt->format == PIPE_FORMAT_L8_SRGB)
+       pt->format == PIPE_FORMAT_L8_SRGB) {
       state[0] |= SS2_REVERSE_GAMMA_ENABLE;
+   }
 
-      /* 3D textures don't seem to respect the border color.
-       * Fallback if there's ever a danger that they might refer to
-       * it.
-       *
-       * Effectively this means fallback on 3D clamp or
-       * clamp_to_border.
-       *
-       * XXX: Check if this is true on i945.
-       * XXX: Check if this bug got fixed in release silicon.
-       */
+   /* 3D textures don't seem to respect the border color.
+    * Fallback if there's ever a danger that they might refer to
+    * it.
+    *
+    * Effectively this means fallback on 3D clamp or
+    * clamp_to_border.
+    *
+    * XXX: Check if this is true on i945.
+    * XXX: Check if this bug got fixed in release silicon.
+    */
 #if 0
    {
       const unsigned ws = sampler->templ->wrap_s;



More information about the mesa-commit mailing list