iris: Do not advertise multisampled image load/store.
authorRafael Antognolli <rafael.antognolli@intel.com>
Mon, 29 Apr 2019 23:02:58 +0000 (16:02 -0700)
committerRafael Antognolli <rafael.antognolli@intel.com>
Tue, 30 Apr 2019 00:04:04 +0000 (17:04 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/drivers/iris/iris_formats.c

index 91a5e9e5982d312f68d155f76ec4f9ecb9469d66..1c32f1a6aa1f9e8872ff8766ad252eff51189217 100644 (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);