[D3D12] ROV: Fix depth format system constant setting
This commit is contained in:
parent
5f2c4500d6
commit
e8414da5dd
|
@ -1652,7 +1652,7 @@ void D3D12CommandProcessor::UpdateSystemConstantValues(
|
||||||
<< DxbcShaderTranslator::kSysFlag_DepthPassIfLess_Shift;
|
<< DxbcShaderTranslator::kSysFlag_DepthPassIfLess_Shift;
|
||||||
if (depth_comparison != 0x7) {
|
if (depth_comparison != 0x7) {
|
||||||
flags |= DxbcShaderTranslator::kSysFlag_DepthStencilRead;
|
flags |= DxbcShaderTranslator::kSysFlag_DepthStencilRead;
|
||||||
if (DepthRenderTargetFormat(rb_depth_info) ==
|
if (DepthRenderTargetFormat((rb_depth_info >> 16) & 0x1) ==
|
||||||
DepthRenderTargetFormat::kD24FS8) {
|
DepthRenderTargetFormat::kD24FS8) {
|
||||||
flags |= DxbcShaderTranslator::kSysFlag_DepthFloat24;
|
flags |= DxbcShaderTranslator::kSysFlag_DepthFloat24;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue