From 9e6aec4535a4c1407f734dde964e45c603a60050 Mon Sep 17 00:00:00 2001 From: Triang3l Date: Wed, 9 Jun 2021 20:23:02 +0300 Subject: [PATCH] [D3D12] Tiny IssueDraw initialization cleanup --- src/xenia/gpu/d3d12/d3d12_command_processor.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xenia/gpu/d3d12/d3d12_command_processor.cc b/src/xenia/gpu/d3d12/d3d12_command_processor.cc index 91b9415c8..74646a459 100644 --- a/src/xenia/gpu/d3d12/d3d12_command_processor.cc +++ b/src/xenia/gpu/d3d12/d3d12_command_processor.cc @@ -1822,13 +1822,13 @@ bool D3D12CommandProcessor::IssueDraw(xenos::PrimitiveType primitive_type, uint32_t index_count, IndexBufferInfo* index_buffer_info, bool major_mode_explicit) { - auto device = GetD3D12Context().GetD3D12Provider().GetDevice(); - auto& regs = *register_file_; - #if XE_UI_D3D12_FINE_GRAINED_DRAW_SCOPES SCOPE_profile_cpu_f("gpu"); #endif // XE_UI_D3D12_FINE_GRAINED_DRAW_SCOPES + ID3D12Device* device = GetD3D12Context().GetD3D12Provider().GetDevice(); + const RegisterFile& regs = *register_file_; + xenos::ModeControl edram_mode = regs.Get().edram_mode; if (edram_mode == xenos::ModeControl::kCopy) { // Special copy handling.