Recently we added checks to try and deny multisampled shader images.
Unfortunately, this messed up imageBuffers, which have sample_count = 0,
which are also used in PBO download, causing us hit CPU map fallbacks.
Fixes: b15f5cfd20c iris: Do not advertise multisampled image load/store.
Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
if (usage & PIPE_BIND_SHADER_IMAGE) {
/* Dataport doesn't support compression, and we can't resolve an MCS
- * compressed surface.
+ * compressed surface. (Buffer images may have sample count of 0.)
*/
- supported &= sample_count == 1;
+ supported &= sample_count <= 1;
// XXX: allow untyped reads
supported &= isl_format_supports_typed_reads(devinfo, format) &&