renderer: ignore inactive stencil registers for depth-only targets (#425)

graphics: ignore inactive Hi-Stencil state

Co-authored-by: nmzik <Nmzik@mail.ru>
This commit is contained in:
GodsWill Devandnmzik authored and GitHub committed 2026-08-31 22:39:44 +04:00
1 parent beb8047083
commit 6453bafd1d
3 files changed
+22 -15

No files matched your search

@@ -11,9 +11,11 @@
namespace Libs::Graphics {
// Without a stencil plane, Hi-Stencil fields are inactive. An active plane is compatible when
// Hi-Stencil is disabled or HTile backing is present.
inline constexpr bool depth_htile_stencil_acceleration_compatible(bool has_stencil, bool has_htile,
bool htile_stencil_disabled) {
return htile_stencil_disabled || (has_stencil && has_htile);
return !has_stencil || htile_stencil_disabled || has_htile;
}
struct RenderDepthInfo {