From 300d77c2fa5427f7482eea42af785d3743eb113f Mon Sep 17 00:00:00 2001 From: Nanley Chery Date: Tue, 17 Sep 2019 09:16:12 -0700 Subject: [PATCH] anv/cmd_buffer: Don't assume CCS_E includes CCS_D There's no longer a clear-only compression mode of CCS on Gen12+. Reviewed-by: Kenneth Graunke --- src/intel/vulkan/genX_cmd_buffer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index ced99939f75..d8afe578105 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -288,7 +288,8 @@ color_attachment_compute_aux_usage(struct anv_device * device, * In other words, we can only sample from a fast-cleared image if it * also supports color compression. */ - if (isl_format_supports_ccs_e(&device->info, iview->planes[0].isl.format)) { + if (isl_format_supports_ccs_e(&device->info, iview->planes[0].isl.format) && + isl_format_supports_ccs_d(&device->info, iview->planes[0].isl.format)) { att_state->input_aux_usage = ISL_AUX_USAGE_CCS_D; /* While fast-clear resolves and partial resolves are fairly cheap in the -- 2.30.2