From 7d84fe9b1f35da32c435c23eb07dfac4cbde7502 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 26 Jan 2016 15:59:43 -0800 Subject: [PATCH] HACK: Expose support for stencil blits If someone actually tries to use them, they won't work, but at least we don't fail to return format properties now. --- src/vulkan/anv_formats.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vulkan/anv_formats.c b/src/vulkan/anv_formats.c index 642bc7d3cb1..2cfcac45b9b 100644 --- a/src/vulkan/anv_formats.c +++ b/src/vulkan/anv_formats.c @@ -496,6 +496,7 @@ VkResult anv_GetPhysicalDeviceImageFormatProperties( } } +#if 0 if (usage & VK_IMAGE_USAGE_TRANSFER_DST_BIT) { if (anv_format_for_vk_format(format)->has_stencil) { /* Not yet implemented because copying to a W-tiled surface is crazy @@ -506,6 +507,7 @@ VkResult anv_GetPhysicalDeviceImageFormatProperties( goto unsupported; } } +#endif if (usage & VK_IMAGE_USAGE_SAMPLED_BIT) { if (!(format_feature_flags & VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT)) { -- 2.30.2