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:
committed by
Marge Bot
parent
3adc9b6722
commit
dda7400c0b
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user