mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
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.
This commit is contained in:
parent
2f1c7fae9e
commit
7cdde962c5
1 changed files with 2 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue