1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-11 10:24:10 +01:00

[dxvk] Remove layout transition hack for presentable images

This commit is contained in:
Philip Rebohle 2021-02-21 02:19:44 +01:00
parent ab3de5e94b
commit 7168cc160f
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -4030,12 +4030,6 @@ namespace dxvk {
m_state.om.renderPassOps.colorOps[i].loadLayout = m_rtLayouts.color[i]; m_state.om.renderPassOps.colorOps[i].loadLayout = m_rtLayouts.color[i];
m_state.om.renderPassOps.depthOps.loadLayout = m_rtLayouts.depth; m_state.om.renderPassOps.depthOps.loadLayout = m_rtLayouts.depth;
// Always discard swap chain images since we currently don't have a better solution for this.
if (m_state.om.renderPassOps.colorOps[0].loadLayout == VK_IMAGE_LAYOUT_PRESENT_SRC_KHR) {
m_state.om.renderPassOps.colorOps[0].loadLayout = VK_IMAGE_LAYOUT_UNDEFINED;
m_state.om.renderPassOps.colorOps[0].loadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE;
}
} }