anv/formats: Properly set FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT

This was added last minute and the API bumped to 1.0.2.
This commit is contained in:
Jason Ekstrand 2016-01-27 22:02:03 -08:00
parent ac75746448
commit ec80d6388a

View 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