From ce4f081e0b031fbbebbaf940e338532a72369abc Mon Sep 17 00:00:00 2001 From: RavenCurseBurg <360931527+RavenCurseBurg@users.noreply.github.com> Date: Thu, 26 Nov 2026 10:56:16 +0800 Subject: [PATCH] startup: share the bound render target members across draw paths --- src/startup_stubs/d3d12_xs_device.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/startup_stubs/d3d12_xs_device.cpp b/src/startup_stubs/d3d12_xs_device.cpp index a6e66c8542..06265004da 100644 --- a/src/startup_stubs/d3d12_xs_device.cpp +++ b/src/startup_stubs/d3d12_xs_device.cpp @@ -2501,8 +2501,6 @@ struct Pass { UINT stencil_reference = 0; // last guest OMSetStencilRef on this recording UINT target_count = 0; ID3D12Resource* target0 = nullptr; // desktop resource of render target 0 (for per-draw dumps) - ID3D12Resource* bound_targets[8]{}; - ID3D12Resource* bound_depth = nullptr; ID3D12Resource* trace_targets[8]{}; ID3D12Resource* trace_depth = nullptr; ID3D12Resource* bound_targets[8]{}; // the last accepted bind: targets [0, target_count) and the depth texture @@ -3584,8 +3582,6 @@ void __stdcall list_targets(Wrapper* self, UINT count, const D3D12_CPU_DESCRIPTO } } if (!count && !dsv_ptr) return; - std::copy_n(targets, 8, pass.bound_targets); - pass.bound_depth = dsv_target; if (red_producers().enabled()) { std::copy_n(targets, 8, pass.trace_targets); pass.trace_depth = dsv_target;