mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-30 12:24:21 +01:00
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.
This commit is contained in:
parent
0b132e8cc1
commit
0ca456830f
@ -535,7 +535,9 @@ void VKBlitScreen::CreateGraphicsPipeline() {
|
|||||||
viewport_state_ci.pNext = nullptr;
|
viewport_state_ci.pNext = nullptr;
|
||||||
viewport_state_ci.flags = 0;
|
viewport_state_ci.flags = 0;
|
||||||
viewport_state_ci.viewportCount = 1;
|
viewport_state_ci.viewportCount = 1;
|
||||||
|
viewport_state_ci.pViewports = nullptr;
|
||||||
viewport_state_ci.scissorCount = 1;
|
viewport_state_ci.scissorCount = 1;
|
||||||
|
viewport_state_ci.pScissors = nullptr;
|
||||||
|
|
||||||
VkPipelineRasterizationStateCreateInfo rasterization_ci;
|
VkPipelineRasterizationStateCreateInfo rasterization_ci;
|
||||||
rasterization_ci.sType = VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO;
|
rasterization_ci.sType = VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO;
|
||||||
|
Loading…
Reference in New Issue
Block a user