From de8187fdeee2ef6db5a10bf7557aab90e8be47d0 Mon Sep 17 00:00:00 2001 From: FakeMichau <49685661+FakeMichau@users.noreply.github.com> Date: Thu, 7 Aug 2025 21:54:46 +0200 Subject: [PATCH] Small res track clean up --- OptiScaler/resource_tracking/ResTrack_dx12.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/OptiScaler/resource_tracking/ResTrack_dx12.cpp b/OptiScaler/resource_tracking/ResTrack_dx12.cpp index 5142cd47..f7b07a34 100644 --- a/OptiScaler/resource_tracking/ResTrack_dx12.cpp +++ b/OptiScaler/resource_tracking/ResTrack_dx12.cpp @@ -12,13 +12,6 @@ #include #include -#include -#include - -DEFINE_GUID(GUID_Tracking, 0x12345678, 0x1234, 0x1234, 0x12, 0x34, 0x56, 0x78, 0x90, 0xab, 0xcd, 0xef); - -static UINT _trackMark = 1; - // Device hooks for FG typedef void (*PFN_CreateRenderTargetView)(ID3D12Device* This, ID3D12Resource* pResource, D3D12_RENDER_TARGET_VIEW_DESC* pDesc, @@ -1620,13 +1613,14 @@ void ResTrack_Dx12::hkClose(ID3D12GraphicsCommandList* This) } } - if (!fg->DepthReady()) + if (!fg->DepthReady() && !fg->MVsReady()) { if (This == _inputsCommandList[index]) { - LOG_DEBUG("Depth CmdList: {:X}", (size_t) This); + LOG_DEBUG("Inputs CmdList: {:X}", (size_t) This); fg->SetDepthReady(); + fg->SetMVsReady(); _inputsCmdList = _inputsCommandList[index]; _inputsCommandList[index] = nullptr;