Skip to content

Commit 7a064ae

Browse files
nwpuCfybaldurk
authored andcommitted
Fix gpu driver crash caused by pixel history
Force load renderpass contains only one subpass, if not set subpass, the subpass passed to gpu driver mismatch the actual subpass, and then causes crash.
1 parent d26f634 commit 7a064ae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

renderdoc/driver/vulkan/wrappers/vk_cmd_funcs.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1586,6 +1586,8 @@ bool WrappedVulkan::Serialise_vkBeginCommandBuffer(SerialiserType &ser, VkComman
15861586
m_CreationInfo.m_RenderPass[GetResID(unwrappedInheritInfo.renderPass)];
15871587
unwrappedInheritInfo.renderPass = Unwrap(rpinfo.loadRPs[unwrappedInheritInfo.subpass]);
15881588
}
1589+
1590+
unwrappedInheritInfo.subpass = 0;
15891591
}
15901592
else
15911593
{

0 commit comments

Comments
 (0)