diff options
Diffstat (limited to 'Source/Core/VideoBackends/D3D12/D3D12PerfQuery.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/D3D12/D3D12PerfQuery.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/VideoBackends/D3D12/D3D12PerfQuery.cpp b/Source/Core/VideoBackends/D3D12/D3D12PerfQuery.cpp index 06f6f9dbcc..a6c466b646 100644 --- a/Source/Core/VideoBackends/D3D12/D3D12PerfQuery.cpp +++ b/Source/Core/VideoBackends/D3D12/D3D12PerfQuery.cpp @@ -9,9 +9,10 @@ #include "Common/Logging/Log.h" #include "VideoBackends/D3D12/Common.h" -#include "VideoBackends/D3D12/D3D12Renderer.h" +#include "VideoBackends/D3D12/D3D12Gfx.h" #include "VideoBackends/D3D12/DX12Context.h" #include "VideoCommon/VideoCommon.h" +#include "VideoCommon/RenderBase.h" namespace DX12 { @@ -64,7 +65,7 @@ void PerfQuery::EnableQuery(PerfQueryGroup group) // This is because we can't leave a query open when submitting a command list, and the draw // call itself may need to execute a command list if we run out of descriptors. Note that // this assumes that the caller has bound all required state prior to enabling the query. - Renderer::GetInstance()->ApplyState(); + Gfx::GetInstance()->ApplyState(); if (group == PQG_ZCOMP_ZCOMPLOC || group == PQG_ZCOMP) { @@ -261,7 +262,7 @@ void PerfQuery::PartialFlush(bool resolve, bool blocking) { // Submit a command buffer if there are unresolved queries (to write them to the buffer). if (resolve && m_unresolved_queries > 0) - Renderer::GetInstance()->ExecuteCommandList(false); + Gfx::GetInstance()->ExecuteCommandList(false); ReadbackQueries(blocking); } |
