radv: disable tc-compat htile for layered images on gfx8
sliceInterleaved may be true for layered images on gfx8. Such a htile cannot be cleared with radv_clear_htile. Fixes 24 failures in dEQP-VK.renderpass2.depth_stencil_resolve.image_2d_16_64_6.* on GFX8. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23959>
This commit is contained in:
@@ -99,6 +99,12 @@ radv_use_tc_compat_htile_for_image(struct radv_device *device, const VkImageCrea
|
||||
*/
|
||||
if (format != VK_FORMAT_D32_SFLOAT_S8_UINT && format != VK_FORMAT_D32_SFLOAT && format != VK_FORMAT_D16_UNORM)
|
||||
return false;
|
||||
|
||||
/* TC-compat HTILE for layered images can have interleaved slices (see sliceInterleaved flag
|
||||
* in addrlib). radv_clear_htile does not work.
|
||||
*/
|
||||
if (pCreateInfo->arrayLayers > 1)
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user