[D3D12] Add forgotten shader implicit early Z check

This commit is contained in:
Triang3l 2019-07-11 10:15:33 +03:00
parent 6672997108
commit 35c8b66c93
1 changed files with 1 additions and 1 deletions

View File

@ -1308,7 +1308,7 @@ bool D3D12CommandProcessor::IssueDraw(PrimitiveType primitive_type,
} else if (!pixel_shader->writes_depth()) {
if (rb_depthcontrol & 0x8) {
early_z = true;
} else {
} else if (pixel_shader->implicit_early_z_allowed()) {
early_z = (!(rb_colorcontrol & 0x8) || (rb_colorcontrol & 0x7) == 0x7) &&
!(rb_colorcontrol & 0x10);
}