From cd7c751e2ccd83421978eb49da7bae579253fe20 Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 8 Jul 2016 18:02:16 +0300 Subject: [PATCH] While we only have one command list, sync after each execution --- renderdoc/driver/d3d12/d3d12_debug.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/renderdoc/driver/d3d12/d3d12_debug.cpp b/renderdoc/driver/d3d12/d3d12_debug.cpp index 4d3db433d..8a69c4081 100644 --- a/renderdoc/driver/d3d12/d3d12_debug.cpp +++ b/renderdoc/driver/d3d12/d3d12_debug.cpp @@ -335,6 +335,8 @@ void D3D12DebugManager::ClearOutputWindowColour(uint64_t id, float col[4]) ID3D12CommandList *list = (ID3D12CommandList *)m_WrappedDevice->GetList(); m_WrappedDevice->GetQueue()->GetReal()->ExecuteCommandLists(1, &list); + + m_WrappedDevice->GPUSync(); } void D3D12DebugManager::ClearOutputWindowDepth(uint64_t id, float depth, uint8_t stencil) @@ -352,6 +354,8 @@ void D3D12DebugManager::ClearOutputWindowDepth(uint64_t id, float depth, uint8_t ID3D12CommandList *list = (ID3D12CommandList *)m_WrappedDevice->GetList(); m_WrappedDevice->GetQueue()->GetReal()->ExecuteCommandLists(1, &list); + + m_WrappedDevice->GPUSync(); } void D3D12DebugManager::BindOutputWindow(uint64_t id, bool depth) @@ -422,6 +426,8 @@ void D3D12DebugManager::FlipOutputWindow(uint64_t id) ID3D12CommandList *list = (ID3D12CommandList *)m_WrappedDevice->GetList(); m_WrappedDevice->GetQueue()->GetReal()->ExecuteCommandLists(1, &list); + m_WrappedDevice->GPUSync(); + outw.swap->Present(0, 0); outw.bbIdx++;