vk/image: Add braces around multi-line ifs
authorChad Versace <chad.versace@intel.com>
Fri, 17 Jul 2015 20:38:09 +0000 (13:38 -0700)
committerChad Versace <chad.versace@intel.com>
Fri, 17 Jul 2015 20:38:09 +0000 (13:38 -0700)
src/vulkan/image.c

index d05f42667ea50fd7e7cd680919aab4c9914f29ba..340df8a5af1b20010eed6f49195b367b2214295b 100644 (file)
@@ -443,12 +443,13 @@ anv_image_view_init(struct anv_image_view *iview,
       .SurfaceBaseAddress = { NULL, view->offset },
    };
 
-   if (cmd_buffer)
+   if (cmd_buffer) {
       view->surface_state =
          anv_state_stream_alloc(&cmd_buffer->surface_state_stream, 64, 64);
-   else
+   } else {
       view->surface_state =
          anv_state_pool_alloc(&device->surface_state_pool, 64, 64);
+   }
 
    GEN8_RENDER_SURFACE_STATE_pack(NULL, view->surface_state.map, &surface_state);
 }
@@ -600,12 +601,13 @@ anv_color_attachment_view_init(struct anv_color_attachment_view *aview,
       depth = image->extent.depth;
    }
 
-   if (cmd_buffer)
+   if (cmd_buffer) {
       view->surface_state =
          anv_state_stream_alloc(&cmd_buffer->surface_state_stream, 64, 64);
-   else
+   } else {
       view->surface_state =
          anv_state_pool_alloc(&device->surface_state_pool, 64, 64);
+   }
 
    struct GEN8_RENDER_SURFACE_STATE surface_state = {
       .SurfaceType = SURFTYPE_2D,