From: Jason Ekstrand Date: Tue, 26 May 2015 00:03:57 +0000 (-0700) Subject: vk/device: Use the correct number of viewports when creating default VP state X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=912944e59d60659d48569b5bccdf01d84593feac;p=mesa.git vk/device: Use the correct number of viewports when creating default VP state Fixes valgrind uninitialized value errors --- diff --git a/src/vulkan/device.c b/src/vulkan/device.c index db90093eb85..066d63598a6 100644 --- a/src/vulkan/device.c +++ b/src/vulkan/device.c @@ -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,