Accept EXPCLEAR acceleration on expanded depth attachments

This commit is contained in:
nmzik
2026-09-17 08:25:55 +04:00
parent 49b2eedd1c
commit fa913ec1a7
@@ -159,8 +159,8 @@ static TextureCache::ImageDesc MakeDepthTargetDesc(const CommandBuffer& buffer,
DepthFatal("invalid depth view: base=%u last=%u", z.depth_view.slice_start, DepthFatal("invalid depth view: base=%u last=%u", z.depth_view.slice_start,
z.depth_view.slice_max); z.depth_view.slice_max);
} }
if (z.z_info.expclear_enabled || z.stencil_info.expclear_enabled || // EXPCLEAR permits an HTile acceleration state; the host attachment is already expanded.
z.z_info.partially_resident || if (z.z_info.partially_resident ||
z.stencil_info.partially_resident || z.z_info.max_mip_level != 0 || z.stencil_info.partially_resident || z.z_info.max_mip_level != 0 ||
z.depth_view.current_mip_level != 0 || unsupported_shading_rate_encoding || z.depth_view.current_mip_level != 0 || unsupported_shading_rate_encoding ||
depth_address == 0 || (depth_address & 0xffffu) != 0) { depth_address == 0 || (depth_address & 0xffffu) != 0) {