From dedfd022b83a2a78b4528b32d72e5ef6ecb42e82 Mon Sep 17 00:00:00 2001
From: Jakob Bornecrantz <jakob@collabora.com>
Date: Fri, 2 Sep 2022 17:50:41 +0100
Subject: [PATCH] c/main: Tidy peek code

---
 src/xrt/compositor/main/comp_window_peek.c | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

diff --git a/src/xrt/compositor/main/comp_window_peek.c b/src/xrt/compositor/main/comp_window_peek.c
index e9426a041..fac80ecf5 100644
--- a/src/xrt/compositor/main/comp_window_peek.c
+++ b/src/xrt/compositor/main/comp_window_peek.c
@@ -273,15 +273,18 @@ comp_window_peek_blit(struct comp_window_peek *w, VkImage src, int32_t width, in
 	    VK_PIPELINE_STAGE_TRANSFER_BIT,       // dstStageMask
 	    range);                               // subresourceRange
 
-	VkImageBlit blit = {.srcSubresource =
-	                        {
-	                            .aspectMask = VK_IMAGE_ASPECT_COLOR_BIT,
-	                            .layerCount = 1,
-	                        },
-	                    .dstSubresource = {
-	                        .aspectMask = VK_IMAGE_ASPECT_COLOR_BIT,
-	                        .layerCount = 1,
-	                    }};
+	VkImageBlit blit = {
+	    .srcSubresource =
+	        {
+	            .aspectMask = VK_IMAGE_ASPECT_COLOR_BIT,
+	            .layerCount = 1,
+	        },
+	    .dstSubresource =
+	        {
+	            .aspectMask = VK_IMAGE_ASPECT_COLOR_BIT,
+	            .layerCount = 1,
+	        },
+	};
 
 	blit.srcOffsets[1].x = width;
 	blit.srcOffsets[1].y = height;