[D3D12] Tiny IssueDraw initialization cleanup
This commit is contained in:
parent
d00dd5a2bc
commit
9e6aec4535
|
@ -1822,13 +1822,13 @@ bool D3D12CommandProcessor::IssueDraw(xenos::PrimitiveType primitive_type,
|
||||||
uint32_t index_count,
|
uint32_t index_count,
|
||||||
IndexBufferInfo* index_buffer_info,
|
IndexBufferInfo* index_buffer_info,
|
||||||
bool major_mode_explicit) {
|
bool major_mode_explicit) {
|
||||||
auto device = GetD3D12Context().GetD3D12Provider().GetDevice();
|
|
||||||
auto& regs = *register_file_;
|
|
||||||
|
|
||||||
#if XE_UI_D3D12_FINE_GRAINED_DRAW_SCOPES
|
#if XE_UI_D3D12_FINE_GRAINED_DRAW_SCOPES
|
||||||
SCOPE_profile_cpu_f("gpu");
|
SCOPE_profile_cpu_f("gpu");
|
||||||
#endif // XE_UI_D3D12_FINE_GRAINED_DRAW_SCOPES
|
#endif // XE_UI_D3D12_FINE_GRAINED_DRAW_SCOPES
|
||||||
|
|
||||||
|
ID3D12Device* device = GetD3D12Context().GetD3D12Provider().GetDevice();
|
||||||
|
const RegisterFile& regs = *register_file_;
|
||||||
|
|
||||||
xenos::ModeControl edram_mode = regs.Get<reg::RB_MODECONTROL>().edram_mode;
|
xenos::ModeControl edram_mode = regs.Get<reg::RB_MODECONTROL>().edram_mode;
|
||||||
if (edram_mode == xenos::ModeControl::kCopy) {
|
if (edram_mode == xenos::ModeControl::kCopy) {
|
||||||
// Special copy handling.
|
// Special copy handling.
|
||||||
|
|
Loading…
Reference in New Issue