From: Jason Ekstrand Date: Thu, 28 Jan 2016 06:02:03 +0000 (-0800) Subject: anv/formats: Properly set FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ec80d6388aaa5cf0318d707a7aef6971ccfe8800;p=mesa.git anv/formats: Properly set FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT This was added last minute and the API bumped to 1.0.2. --- diff --git a/src/vulkan/anv_formats.c b/src/vulkan/anv_formats.c index 3b63c97e5f4..17ccae0cea2 100644 --- a/src/vulkan/anv_formats.c +++ b/src/vulkan/anv_formats.c @@ -318,6 +318,9 @@ get_image_format_properties(int gen, enum isl_format base, if (info->sampling <= gen) { flags |= VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT | VK_FORMAT_FEATURE_BLIT_SRC_BIT; + + if (info->filtering <= gen) + flags |= VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT; } /* We can render to swizzled formats. However, if the alpha channel is