summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/D3D12/D3D12PerfQuery.cpp
diff options
context:
space:
mode:
authorScott Mansell <phiren@gmail.com>2023-01-29 23:58:54 +1300
committerScott Mansell <phiren@gmail.com>2023-01-31 19:41:24 +1300
commit8ad59f8ccf95e5e6906887d40ed30717a33b84f6 (patch)
tree5e8488284edeb29a2be035702bf46d76b868fe16 /Source/Core/VideoBackends/D3D12/D3D12PerfQuery.cpp
parent5a2d119bda4fda240731dc45286aeff9fb68918f (diff)
Add AbstractGfx for DX12
Diffstat (limited to 'Source/Core/VideoBackends/D3D12/D3D12PerfQuery.cpp')
-rw-r--r--Source/Core/VideoBackends/D3D12/D3D12PerfQuery.cpp7
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);
}