From ec80d6388aaa5cf0318d707a7aef6971ccfe8800 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 27 Jan 2016 22:02:03 -0800 Subject: [PATCH] anv/formats: Properly set FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT This was added last minute and the API bumped to 1.0.2. --- src/vulkan/anv_formats.c | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.30.2