anv/formats: Properly set FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 28 Jan 2016 06:02:03 +0000 (22:02 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 28 Jan 2016 06:02:06 +0000 (22:02 -0800)
This was added last minute and the API bumped to 1.0.2.

src/vulkan/anv_formats.c

index 3b63c97e5f4d0e6807cfc530899e9433c653bc18..17ccae0cea22b4c628cfb385912be41f32c59601 100644 (file)
@@ -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