vk/device: Use the correct number of viewports when creating default VP state
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 26 May 2015 00:03:57 +0000 (17:03 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 26 May 2015 00:14:49 +0000 (17:14 -0700)
Fixes valgrind uninitialized value errors

src/vulkan/device.c

index db90093eb857f26d59d3680c4ea4e7a4a14713e2..066d63598a6301da6c07d900c516d68befb9e356 100644 (file)
@@ -3141,7 +3141,7 @@ VkResult anv_CreateFramebuffer(
    vkCreateDynamicViewportState((VkDevice) device,
                                 &(VkDynamicVpStateCreateInfo) {
                                    .sType = VK_STRUCTURE_TYPE_DYNAMIC_VP_STATE_CREATE_INFO,
-                                   .viewportAndScissorCount = 2,
+                                   .viewportAndScissorCount = 1,
                                    .pViewports = (VkViewport[]) {
                                       {
                                          .originX = 0,