From: Samuel Iglesias Gonsálvez Date: Thu, 23 Mar 2017 11:19:39 +0000 (+0100) Subject: anv: enable sampling from fast-cleared images on SKL X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c4c02471f485e6e9a8ffdaaa789861dcd5a3b8e9;p=mesa.git anv: enable sampling from fast-cleared images on SKL 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 Reviewed-by: Nanley Chery --- diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index e2364dbfd52..39856b9af7c 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -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 */