mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
radv: disable STORAGE for depth-only formats
This is actually not needed because nobody is using storage with depth-only formats and compression doesn't work at all anyways. PAL and native don't allow this either. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40214>
This commit is contained in:
parent
8624da56ee
commit
74defc5f24
2 changed files with 3 additions and 3 deletions
|
|
@ -116,7 +116,7 @@ radv_is_storage_image_format_supported(const struct radv_physical_device *pdev,
|
|||
if (format == VK_FORMAT_UNDEFINED)
|
||||
return false;
|
||||
|
||||
if (vk_format_has_stencil(format))
|
||||
if (vk_format_is_depth_or_stencil(format))
|
||||
return false;
|
||||
|
||||
if (instance->drirc.debug.disable_depth_storage && vk_format_has_depth(format))
|
||||
|
|
|
|||
|
|
@ -381,8 +381,8 @@ radv_use_htile_for_image(const struct radv_device *device, const struct radv_ima
|
|||
if (!(image->vk.usage & VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT))
|
||||
return false;
|
||||
|
||||
if (image->vk.usage & VK_IMAGE_USAGE_STORAGE_BIT)
|
||||
return false;
|
||||
/* Storage isn't allowed with depth/stencil images. */
|
||||
assert(!(image->vk.usage & VK_IMAGE_USAGE_STORAGE_BIT));
|
||||
|
||||
/* TODO:
|
||||
* - Investigate about mips+layers.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue