vk: Fix warning from missing initializer
authorKristian Høgsberg <kristian.h.kristensen@intel.com>
Fri, 15 May 2015 23:07:17 +0000 (16:07 -0700)
committerKristian Høgsberg <kristian.h.kristensen@intel.com>
Fri, 15 May 2015 23:07:17 +0000 (16:07 -0700)
Struct initializers need to be { 0, } to zero out the variable they're
initializing.

src/vulkan/meta.c

index 8fbec09e626720a953c789dd4aaa01171b819773..5091977d2ba8966c0badd54547417a13afd3771e 100644 (file)
@@ -584,7 +584,7 @@ meta_emit_blit(struct anv_cmd_buffer *cmd_buffer,
       .sType = VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO,
       .renderArea = { { 0, 0 }, { dest->extent.width, dest->extent.height } },
       .colorAttachmentCount = 1,
-      .extent = { },
+      .extent = { 0, },
       .sampleCount = 1,
       .layers = 1,
       .pColorFormats = (VkFormat[]) { dest->format },