* 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,
*/
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) {