From: Boris Brezillon Date: Tue, 5 Apr 2022 10:01:05 +0000 (-0700) Subject: dzn: Set bufferFeatures to zero on depth/stencil formats X-Git-Tag: upstream/22.3.5~10659 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad0ac592be32938c0ef9b7200f2e4019eab9c48b;p=platform%2Fupstream%2Fmesa.git dzn: Set bufferFeatures to zero on depth/stencil formats Those are not supposed to advertise buffer features. Reviewed-by: Erik Faye-Lund Part-of: --- 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