gallivm: remove extraneous braces
authorBrian Paul <brianp@vmware.com>
Wed, 21 Jul 2010 15:16:02 +0000 (09:16 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 21 Jul 2010 16:16:32 +0000 (10:16 -0600)
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c

index de361026261ccb72cb2b2109910dca50743f9abe..670c9747c0af3b157d0e8238377cc6ca22d230cd 100644 (file)
@@ -502,32 +502,30 @@ emit_fetch(
 
    switch (reg->Register.File) {
    case TGSI_FILE_CONSTANT:
-      {
-         if (reg->Register.Indirect) {
-            LLVMValueRef index_vec;  /* index into the const buffer */
+      if (reg->Register.Indirect) {
+         LLVMValueRef index_vec;  /* index into the const buffer */
 
-            /* index_vec = broadcast(reg->Register.Index * 4 + swizzle) */
-            index_vec = lp_build_const_int_vec(bld->int_bld.type,
-                                   reg->Register.Index * 4 + swizzle);
+         /* index_vec = broadcast(reg->Register.Index * 4 + swizzle) */
+         index_vec = lp_build_const_int_vec(bld->int_bld.type,
+                                            reg->Register.Index * 4 + swizzle);
 
-            /* index_vec = index_vec + addr_vec */
-            index_vec = lp_build_add(&bld->base, index_vec, addr_vec);
+         /* index_vec = index_vec + addr_vec */
+         index_vec = lp_build_add(&bld->base, index_vec, addr_vec);
 
-            /* Gather values from the constant buffer */
-            res = build_gather(bld, bld->consts_ptr, index_vec);
-         }
-         else {
-            LLVMValueRef index;  /* index into the const buffer */
-            LLVMValueRef scalar, scalar_ptr;
+         /* Gather values from the constant buffer */
+         res = build_gather(bld, bld->consts_ptr, index_vec);
+      }
+      else {
+         LLVMValueRef index;  /* index into the const buffer */
+         LLVMValueRef scalar, scalar_ptr;
 
-            index = lp_build_const_int32(reg->Register.Index*4 + swizzle);
+         index = lp_build_const_int32(reg->Register.Index*4 + swizzle);
 
-            scalar_ptr = LLVMBuildGEP(bld->base.builder, bld->consts_ptr,
-                                      &index, 1, "");
-            scalar = LLVMBuildLoad(bld->base.builder, scalar_ptr, "");
+         scalar_ptr = LLVMBuildGEP(bld->base.builder, bld->consts_ptr,
+                                   &index, 1, "");
+         scalar = LLVMBuildLoad(bld->base.builder, scalar_ptr, "");
 
-            res = lp_build_broadcast_scalar(&bld->base, scalar);
-         }
+         res = lp_build_broadcast_scalar(&bld->base, scalar);
       }
       break;