mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
radv: disable IMAGE_USAGE_STORAGE with depth-only and stencil-only formats
This shouldn't have been enabled at all. Depth-stencil formats were accidentally disabled but not depth-only or stencil-only formats. This doesn't seem allowed by DX12 and both AMD/NVIDIA don't enable it. Cc: mesa-stable Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23122>
This commit is contained in:
parent
3adc9b6722
commit
dda7400c0b
1 changed files with 3 additions and 0 deletions
|
|
@ -537,6 +537,9 @@ radv_is_storage_image_format_supported(const struct radv_physical_device *physic
|
|||
if (format == VK_FORMAT_UNDEFINED)
|
||||
return false;
|
||||
|
||||
if (vk_format_is_depth_or_stencil(format))
|
||||
return false;
|
||||
|
||||
data_format =
|
||||
radv_translate_tex_dataformat(format, desc, vk_format_get_first_non_void_channel(format));
|
||||
num_format =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue