Revert "[D3D12] Re-add accidentally deleted RT update trigger and treat Z test and write bits separately"

This reverts commit 25cc189e99.
This commit is contained in:
Triang3l
2019-04-12 20:04:50 +03:00
parent 25cc189e99
commit 8f51855c8f
3 changed files with 25 additions and 25 deletions

View File

@@ -570,8 +570,8 @@ bool RenderTargetCache::UpdateRenderTargets(const D3D12Shader* pixel_shader) {
}
uint32_t rb_depthcontrol = regs[XE_GPU_REG_RB_DEPTHCONTROL].u32;
uint32_t rb_depth_info = regs[XE_GPU_REG_RB_DEPTH_INFO].u32;
// 0x1 = stencil test, 0x2 = depth test, 0x4 = depth writing.
enabled[4] = (rb_depthcontrol & (0x1 | 0x2 | 0x4)) != 0;
// 0x1 = stencil test, 0x2 = depth test.
enabled[4] = (rb_depthcontrol & (0x1 | 0x2)) != 0;
edram_bases[4] = std::min(rb_depth_info & 0xFFF, 2048u);
formats[4] = (rb_depth_info >> 16) & 0x1;
formats_are_64bpp[4] = false;
@@ -672,7 +672,6 @@ bool RenderTargetCache::UpdateRenderTargets(const D3D12Shader* pixel_shader) {
const RenderTargetBinding& binding = current_bindings_[i];
if (binding.is_bound) {
if (binding.edram_base != edram_bases[i]) {
full_update = true;
break;
}
if (rov_used) {