summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2020-04-15 03:30:08 -0300
committerGravatar ReinUsesLisp2020-04-15 03:30:08 -0300
commit0ca456830f1149e315f57dd43f32cbcba97e310c (patch)
tree4f144edde6fa0d6961d60f35ba901689f04b1a4c /src
parentMerge pull request #3657 from ReinUsesLisp/viewport-zero (diff)
downloadyuzu-0ca456830f1149e315f57dd43f32cbcba97e310c.tar.gz
yuzu-0ca456830f1149e315f57dd43f32cbcba97e310c.tar.xz
yuzu-0ca456830f1149e315f57dd43f32cbcba97e310c.zip
vk_blit_screen: Initialize all members in VkPipelineViewportStateCreateInfo
When the dynamic state is specified, pViewports and pScissors are ignored, quoting the specification: pViewports is a pointer to an array of VkViewport structures, defining the viewport transforms. If the viewport state is dynamic, this member is ignored. That said, AMD's proprietary driver itself seem to read it regardless of what the specification says.
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_vulkan/vk_blit_screen.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_blit_screen.cpp b/src/video_core/renderer_vulkan/vk_blit_screen.cpp
index 21644a7e7..fbd406f2b 100644
--- a/src/video_core/renderer_vulkan/vk_blit_screen.cpp
+++ b/src/video_core/renderer_vulkan/vk_blit_screen.cpp
@@ -535,7 +535,9 @@ void VKBlitScreen::CreateGraphicsPipeline() {
535 viewport_state_ci.pNext = nullptr; 535 viewport_state_ci.pNext = nullptr;
536 viewport_state_ci.flags = 0; 536 viewport_state_ci.flags = 0;
537 viewport_state_ci.viewportCount = 1; 537 viewport_state_ci.viewportCount = 1;
538 viewport_state_ci.pViewports = nullptr;
538 viewport_state_ci.scissorCount = 1; 539 viewport_state_ci.scissorCount = 1;
540 viewport_state_ci.pScissors = nullptr;
539 541
540 VkPipelineRasterizationStateCreateInfo rasterization_ci; 542 VkPipelineRasterizationStateCreateInfo rasterization_ci;
541 rasterization_ci.sType = VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO; 543 rasterization_ci.sType = VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO;