Mesa (main): zink: remove needless scope

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Aug 27 18:54:28 UTC 2021


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

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Thu Aug 26 11:03:25 2021 +0200

zink: remove needless scope

There's no variables declared in here, so there's no point in having
this slightly awkward scope here.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12594>

---

 src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c
index 3990be77ab8..af986ecafd3 100644
--- a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c
+++ b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c
@@ -2909,11 +2909,10 @@ emit_intrinsic(struct ntv_context *ctx, nir_intrinsic_instr *intr)
       emit_read_invocation(ctx, intr);
       break;
 
-   case nir_intrinsic_load_workgroup_size: {
+   case nir_intrinsic_load_workgroup_size:
       assert(ctx->local_group_size_var);
       store_dest(ctx, &intr->dest, ctx->local_group_size_var, nir_type_uint);
       break;
-   }
 
    case nir_intrinsic_load_shared:
       emit_load_shared(ctx, intr);



More information about the mesa-commit mailing list