From ad0ac592be32938c0ef9b7200f2e4019eab9c48b Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Tue, 5 Apr 2022 03:01:05 -0700 Subject: [PATCH] dzn: Set bufferFeatures to zero on depth/stencil formats Those are not supposed to advertise buffer features. Reviewed-by: Erik Faye-Lund Part-of: --- src/microsoft/vulkan/dzn_device.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/microsoft/vulkan/dzn_device.cpp b/src/microsoft/vulkan/dzn_device.cpp index 6227a7bb681..ac6446c4ca6 100644 --- a/src/microsoft/vulkan/dzn_device.cpp +++ b/src/microsoft/vulkan/dzn_device.cpp @@ -635,6 +635,10 @@ dzn_physical_device_get_format_properties(dzn_physical_device *pdev, base_props->bufferFeatures = VK_FORMAT_FEATURE_TRANSFER_SRC_BIT | VK_FORMAT_FEATURE_TRANSFER_DST_BIT; } + + /* depth/stencil format shouldn't advertise buffer features */ + if (vk_format_is_depth_or_stencil(format)) + base_props->bufferFeatures = 0; } static VkResult