[fuchsia] Fix computation of image format features.

Change-Id: I047a2fbb6d16c63e527890395cba4363f0336b1d
Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/mesa/+/1017057
Fuchsia-Auto-Submit: Josh Gargus <jjosh@google.com>
Reviewed-by: John Rosasco <rosasco@google.com>
Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com>
diff --git a/src/intel/vulkan/anv_magma_buffer_collection.c b/src/intel/vulkan/anv_magma_buffer_collection.c
index 707214f..c859db2 100644
--- a/src/intel/vulkan/anv_magma_buffer_collection.c
+++ b/src/intel/vulkan/anv_magma_buffer_collection.c
@@ -437,12 +437,12 @@
       const struct anv_physical_device* physical_device = device->physical;
       const struct intel_device_info* devinfo = &physical_device->info;
       const struct anv_format* anv_format = anv_get_format(format);
-      if (has_format_modifier) {
+      if (format_modifier == MAGMA_FORMAT_MODIFIER_LINEAR) {
          pProperties->formatFeatures = get_image_format_features(devinfo, format, anv_format,
-                                                                     VK_IMAGE_TILING_OPTIMAL, NULL);
+                                                                 VK_IMAGE_TILING_LINEAR, NULL);
       } else {
          pProperties->formatFeatures = get_image_format_features(devinfo, format, anv_format,
-                                                                     VK_IMAGE_TILING_LINEAR, NULL);
+                                                                 VK_IMAGE_TILING_OPTIMAL, NULL);
       }
    }