From: Jason Ekstrand Date: Tue, 26 Jan 2016 23:59:43 +0000 (-0800) Subject: HACK: Expose support for stencil blits X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7d84fe9b1f35da32c435c23eb07dfac4cbde7502;p=mesa.git 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. --- 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)) {