From 35c8b66c939fc35b500764b940b2c3ba9f9b91d3 Mon Sep 17 00:00:00 2001 From: Triang3l Date: Thu, 11 Jul 2019 10:15:33 +0300 Subject: [PATCH] [D3D12] Add forgotten shader implicit early Z check --- 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 4f26de650..b994e1a3d 100644 --- a/src/xenia/gpu/d3d12/d3d12_command_processor.cc +++ b/src/xenia/gpu/d3d12/d3d12_command_processor.cc @@ -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); }