From fa913ec1a7917d39e8c92ef866b02f87c7f497cd Mon Sep 17 00:00:00 2001 From: nmzik Date: Thu, 17 Sep 2026 08:25:55 +0400 Subject: [PATCH] Accept EXPCLEAR acceleration on expanded depth attachments --- src/graphics/host_gpu/renderer/depthRenderTarget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graphics/host_gpu/renderer/depthRenderTarget.cpp b/src/graphics/host_gpu/renderer/depthRenderTarget.cpp index d689b84a0..507da9bb9 100644 --- a/src/graphics/host_gpu/renderer/depthRenderTarget.cpp +++ b/src/graphics/host_gpu/renderer/depthRenderTarget.cpp @@ -159,8 +159,8 @@ static TextureCache::ImageDesc MakeDepthTargetDesc(const CommandBuffer& buffer, DepthFatal("invalid depth view: base=%u last=%u", z.depth_view.slice_start, z.depth_view.slice_max); } - if (z.z_info.expclear_enabled || z.stencil_info.expclear_enabled || - z.z_info.partially_resident || + // EXPCLEAR permits an HTile acceleration state; the host attachment is already expanded. + if (z.z_info.partially_resident || z.stencil_info.partially_resident || z.z_info.max_mip_level != 0 || z.depth_view.current_mip_level != 0 || unsupported_shading_rate_encoding || depth_address == 0 || (depth_address & 0xffffu) != 0) {