[D3D12] ROV: Fix depth format system constant setting

This commit is contained in:
Triang3l 2018-10-16 18:08:18 +03:00
parent 5f2c4500d6
commit e8414da5dd
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}