anv: enable sampling from fast-cleared images on SKL
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Thu, 23 Mar 2017 11:19:39 +0000 (12:19 +0100)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Mon, 27 Mar 2017 04:32:24 +0000 (06:32 +0200)
A resolve is not needed on Skylake in this case. We were forcing
a resolve because we set the input_aux_usage to ISL_AUX_USAGE_NONE.

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
src/intel/vulkan/genX_cmd_buffer.c

index e2364dbfd52040a20a94bae12065060cb67854be..39856b9af7c77c2580433df3a727c26bdb5094e4 100644 (file)
@@ -305,8 +305,8 @@ color_attachment_compute_aux_usage(struct anv_device *device,
           * doesn't also support color compression.
           */
          att_state->input_aux_usage = ISL_AUX_USAGE_NONE;
-      } else if (GEN_GEN == 8) {
-         /* Broadwell can sample from fast-cleared images */
+      } else if (GEN_GEN >= 8) {
+         /* Broadwell/Skylake can sample from fast-cleared images */
          att_state->input_aux_usage = ISL_AUX_USAGE_CCS_D;
       } else {
          /* Ivy Bridge and Haswell cannot */