Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5095>
* the decompression is much worse.
*/
if (has_htile && !tc_compat_htile &&
- tex->surface.flags & RADEON_SURF_TC_COMPATIBLE_HTILE)
+ tex->surface.flags & RADEON_SURF_TC_COMPATIBLE_HTILE &&
+ (inplace_planes & PIPE_MASK_Z || !tex->htile_stencil_disabled))
tex->enable_tc_compatible_htile_next_clear = true;
/* Only in-place decompression needs to flush DB caches, or