From: Chad Versace Date: Fri, 17 Jul 2015 20:38:09 +0000 (-0700) Subject: vk/image: Add braces around multi-line ifs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fc3838376b920b5bfc3b1afe31c326063f4bfb84;p=mesa.git vk/image: Add braces around multi-line ifs --- diff --git a/src/vulkan/image.c b/src/vulkan/image.c index d05f42667ea..340df8a5af1 100644 --- a/src/vulkan/image.c +++ b/src/vulkan/image.c @@ -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,