aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2019-07-22 16:53:32 -0700
committerKenneth Graunke <[email protected]>2019-07-22 17:30:13 -0700
commit7cdde962c5f65165e28cae92da57d2d6e4d7a740 (patch)
treee2125f563667c3c939bdfbc8b637b42e9843cdc8 /src
parent2f1c7fae9e476fe3914749b33964bc66a9f48f92 (diff)
iris: Support storage images that have matching typed formats for reads
Even if we don't directly support typed reads on a format, we can often translate them to a reasonable matching format. Advertise those too.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/iris/iris_formats.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/drivers/iris/iris_formats.c b/src/gallium/drivers/iris/iris_formats.c
index d5358e43fe1..51f8a73d1fc 100644
--- a/src/gallium/drivers/iris/iris_formats.c
+++ b/src/gallium/drivers/iris/iris_formats.c
@@ -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) {