Skip to content

Commit e81015c

Browse files
committed
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 edf9dda commit e81015c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

renderdoc/driver/vulkan/wrappers/vk_cmd_funcs.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,6 +1572,7 @@ bool WrappedVulkan::Serialise_vkBeginCommandBuffer(SerialiserType &ser, VkComman
15721572

15731573
if(m_ActionCallback && m_ActionCallback->ForceLoadRPs())
15741574
{
1575+
unwrappedInheritInfo.subpass = 0;
15751576
if(unwrappedInheritInfo.framebuffer != VK_NULL_HANDLE)
15761577
{
15771578
const VulkanCreationInfo::Framebuffer &fbinfo =

0 commit comments

Comments
 (0)