mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-14 22:29:15 +01:00
[dxvk] Fix clear after late resolve
This commit is contained in:
parent
45ec01a0a1
commit
a08579e555
@ -386,7 +386,8 @@ namespace dxvk {
|
|||||||
if (m_state.om.framebufferInfo.isFullSize(imageView))
|
if (m_state.om.framebufferInfo.isFullSize(imageView))
|
||||||
attachmentIndex = m_state.om.framebufferInfo.findAttachment(imageView);
|
attachmentIndex = m_state.om.framebufferInfo.findAttachment(imageView);
|
||||||
|
|
||||||
if (attachmentIndex < 0) {
|
// Need to interrupt the render pass if there are pending resolves
|
||||||
|
if (attachmentIndex < 0 || m_flags.test(DxvkContextFlag::GpDirtyFramebuffer)) {
|
||||||
// Suspend works here because we'll end up with one of these scenarios:
|
// Suspend works here because we'll end up with one of these scenarios:
|
||||||
// 1) The render pass gets ended for good, in which case we emit barriers
|
// 1) The render pass gets ended for good, in which case we emit barriers
|
||||||
// 2) The clear gets folded into render pass ops, so the layout is correct
|
// 2) The clear gets folded into render pass ops, so the layout is correct
|
||||||
@ -3957,7 +3958,7 @@ namespace dxvk {
|
|||||||
if (attachmentIndex >= 0 && !m_state.om.framebufferInfo.isWritable(attachmentIndex, aspect))
|
if (attachmentIndex >= 0 && !m_state.om.framebufferInfo.isWritable(attachmentIndex, aspect))
|
||||||
attachmentIndex = -1;
|
attachmentIndex = -1;
|
||||||
|
|
||||||
if (attachmentIndex < 0) {
|
if (attachmentIndex < 0 || m_flags.test(DxvkContextFlag::GpDirtyFramebuffer)) {
|
||||||
this->spillRenderPass(false);
|
this->spillRenderPass(false);
|
||||||
|
|
||||||
this->prepareImage(imageView->image(), imageView->subresources());
|
this->prepareImage(imageView->image(), imageView->subresources());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user