iris: Do not advertise multisampled image load/store.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Rafael Antognolli 2019-04-29 16:02:58 -07:00
parent 9cb8037e54
commit b15f5cfd20
1 changed files with 5 additions and 0 deletions

View File

@ -454,6 +454,11 @@ iris_is_format_supported(struct pipe_screen *pscreen,
}
if (usage & PIPE_BIND_SHADER_IMAGE) {
/* Dataport doesn't support compression, and we can't resolve an MCS
* compressed surface.
*/
supported &= sample_count == 1;
// XXX: allow untyped reads
supported &= isl_format_supports_typed_reads(devinfo, format) &&
isl_format_supports_typed_writes(devinfo, format);