summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-01-27 22:02:03 -0800
committerJason Ekstrand <[email protected]>2016-01-27 22:02:06 -0800
commitec80d6388aaa5cf0318d707a7aef6971ccfe8800 (patch)
tree92d8088f6113c2e7ee10eb3bce75fe19dee3ed97
parentac75746448a4ffb6ac694f3c65b9aee0d47608fb (diff)
anv/formats: Properly set FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT
This was added last minute and the API bumped to 1.0.2.
-rw-r--r--src/vulkan/anv_formats.c3
1 files changed, 3 insertions, 0 deletions
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