mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-25 03:40:37 +00:00
rsx: Fix depth bounds test
- Allow depth bounds test to access the Z buffer even when depth test is disabled.
This commit is contained in:
parent
632af8d723
commit
ab3d36f0f3
@ -1094,6 +1094,17 @@ namespace rsx
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (depth_buffer_unused) [[unlikely]]
|
||||
{
|
||||
// Check if depth bounds is active. Depth bounds test does NOT need depth test to be enabled to access the Z buffer
|
||||
// Bind Z buffer in read mode for bounds check in this case
|
||||
if (rsx::method_registers.depth_bounds_test_enabled() &&
|
||||
(rsx::method_registers.depth_bounds_min() > 0.f || rsx::method_registers.depth_bounds_max() < 1.f))
|
||||
{
|
||||
depth_buffer_unused = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
color_buffer_unused = !color_write_enabled || layout.target == rsx::surface_target::none;
|
||||
|
Loading…
x
Reference in New Issue
Block a user