From 46e7e7ea0fe5680c54cddf1a7f043f06190211e1 Mon Sep 17 00:00:00 2001 From: ParantezTech <12572227+par274@users.noreply.github.com> Date: Tue, 6 Oct 2026 14:42:11 +0300 Subject: [PATCH] [GPU] Accept HTile-backed compressed stencil targets Co-authored-by: Sekai <140012992+igettingit@users.noreply.github.com> --- .../Gpu/Images/ImageRequestBuilders.DepthTarget.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SharpEmu.Libs/Gpu/Images/ImageRequestBuilders.DepthTarget.cs b/src/SharpEmu.Libs/Gpu/Images/ImageRequestBuilders.DepthTarget.cs index c0b7dc3..4c8b467 100644 --- a/src/SharpEmu.Libs/Gpu/Images/ImageRequestBuilders.DepthTarget.cs +++ b/src/SharpEmu.Libs/Gpu/Images/ImageRequestBuilders.DepthTarget.cs @@ -58,7 +58,8 @@ public static partial class ImageRequestBuilders return Format.Undefined; } - private static bool HtileStencilCompatible(bool hasStencil, bool hasHtile, bool htileStencilDisabled) => !hasStencil || !hasHtile || htileStencilDisabled; + private static bool HtileStencilCompatible(bool hasStencil, bool hasHtile, bool htileStencilDisabled) => + !hasStencil || htileStencilDisabled || hasHtile; // Builds the request for the bound depth target. Null when no depth or stencil state is active. public static DepthTargetResolution? DepthTarget(in DepthTargetWords depthWords, IImageFormatSupport device) =>