meson,i965: Link with android deps when building for android.
[mesa.git] / src / gallium / drivers / iris / iris_formats.c
index d5358e43fe162a754de6142b275fb567a13c16bd..9d5519be23b64e1d6749cd28c482ca5fe3547eea 100644 (file)
@@ -394,7 +394,7 @@ iris_format_for_usage(const struct gen_device_info *devinfo,
  * Returns true if the given format is supported for the given usage
  * (PIPE_BIND_*) and sample count.
  */
-boolean
+bool
 iris_is_format_supported(struct pipe_screen *pscreen,
                          enum pipe_format pformat,
                          enum pipe_texture_target target,
@@ -470,9 +470,8 @@ iris_is_format_supported(struct pipe_screen *pscreen,
        */
       supported &= sample_count == 0;
 
-      /* TODO: allow formats that only support untyped reads? */
-      supported &= isl_format_supports_typed_reads(devinfo, format) &&
-                   isl_format_supports_typed_writes(devinfo, format);
+      supported &= isl_format_supports_typed_writes(devinfo, format);
+      supported &= isl_has_matching_typed_storage_image_format(devinfo, format);
    }
 
    if (usage & PIPE_BIND_SAMPLER_VIEW) {