diff --git a/src/dxvk/dxvk_context.cpp b/src/dxvk/dxvk_context.cpp index eb0a9a4e9..9b579a95b 100644 --- a/src/dxvk/dxvk_context.cpp +++ b/src/dxvk/dxvk_context.cpp @@ -1630,7 +1630,11 @@ namespace dxvk { this->spillRenderPass(); this->unbindComputePipeline(); - m_barriers.recordCommands(m_cmd); + if (m_barriers.isImageDirty( + imageView->image(), + imageView->subresources(), + DxvkAccess::Write)) + m_barriers.recordCommands(m_cmd); // Query pipeline objects to use for this clear operation DxvkMetaClearPipeline pipeInfo = m_metaClear->getClearImagePipeline(