mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +01:00
[dxvk] Fix render target readback barrier
Dynamic rendering does not allow barriers within a render pass instance, so we have to actually stop rendering.
This commit is contained in:
parent
e8f3d9b040
commit
605fef10b4
@ -1417,13 +1417,14 @@ namespace dxvk {
|
||||
|
||||
|
||||
void DxvkContext::emitRenderTargetReadbackBarrier() {
|
||||
if (m_flags.test(DxvkContextFlag::GpRenderPassBound)) {
|
||||
emitMemoryBarrier(VK_DEPENDENCY_BY_REGION_BIT,
|
||||
VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT,
|
||||
VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT,
|
||||
VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT,
|
||||
VK_ACCESS_SHADER_READ_BIT);
|
||||
}
|
||||
if (m_flags.test(DxvkContextFlag::GpRenderPassBound))
|
||||
this->spillRenderPass(true);
|
||||
|
||||
emitMemoryBarrier(0,
|
||||
VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT,
|
||||
VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT,
|
||||
VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT,
|
||||
VK_ACCESS_SHADER_READ_BIT);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user