From e8414da5ddf98ab677b5d13148c680b3b14b8d6f Mon Sep 17 00:00:00 2001 From: Triang3l Date: Tue, 16 Oct 2018 18:08:18 +0300 Subject: [PATCH] [D3D12] ROV: Fix depth format system constant setting --- src/xenia/gpu/d3d12/d3d12_command_processor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/gpu/d3d12/d3d12_command_processor.cc b/src/xenia/gpu/d3d12/d3d12_command_processor.cc index c6eb60e3f..8fd974bbd 100644 --- a/src/xenia/gpu/d3d12/d3d12_command_processor.cc +++ b/src/xenia/gpu/d3d12/d3d12_command_processor.cc @@ -1652,7 +1652,7 @@ void D3D12CommandProcessor::UpdateSystemConstantValues( << DxbcShaderTranslator::kSysFlag_DepthPassIfLess_Shift; if (depth_comparison != 0x7) { flags |= DxbcShaderTranslator::kSysFlag_DepthStencilRead; - if (DepthRenderTargetFormat(rb_depth_info) == + if (DepthRenderTargetFormat((rb_depth_info >> 16) & 0x1) == DepthRenderTargetFormat::kD24FS8) { flags |= DxbcShaderTranslator::kSysFlag_DepthFloat24; }