radv: do not enable HTILE for depth/stencil storage images

STORAGE will be allowed for depth-only formats, but HTILE is unlikely
to be supported.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29239>
This commit is contained in:
Samuel Pitoiset
2024-05-09 16:41:00 +02:00
committed by Marge Bot
parent b2fd49201e
commit f9af8e7a2b

View File

@@ -383,6 +383,9 @@ radv_use_htile_for_image(const struct radv_device *device, const struct radv_ima
(compression && compression->flags == VK_IMAGE_COMPRESSION_DISABLED_EXT))
return false;
if (image->vk.usage & VK_IMAGE_USAGE_STORAGE_BIT)
return false;
/* TODO:
* - Investigate about mips+layers.
* - Enable on other gens.