intel/isl: Rename supports_lossless_compression to supports_ccs_e
The term "lossless compression" could potentially mean multisample color compression, single-sample color compression or HiZ because they are all lossless. The term CCS_E, however, has a very precise meaning; in ISL and is only used to refer to single-sample color compression. It's also much shorter which is nice. Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Reviewed-by: Chad Versace <chadversary@chromium.org> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
This commit is contained in:
@@ -229,7 +229,7 @@ make_surface(const struct anv_device *dev,
|
||||
* leave compression on at all times for these formats.
|
||||
*/
|
||||
if (!(vk_info->flags & VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT) &&
|
||||
isl_format_supports_lossless_compression(&dev->info, format)) {
|
||||
isl_format_supports_ccs_e(&dev->info, format)) {
|
||||
if (vk_info->usage & VK_IMAGE_USAGE_STORAGE_BIT) {
|
||||
/*
|
||||
* For now, we leave compression off for anything that may
|
||||
|
@@ -266,8 +266,7 @@ color_attachment_compute_aux_usage(struct anv_device *device,
|
||||
att_state->fast_clear = false;
|
||||
}
|
||||
|
||||
if (isl_format_supports_lossless_compression(&device->info,
|
||||
iview->isl.format)) {
|
||||
if (isl_format_supports_ccs_e(&device->info, iview->isl.format)) {
|
||||
att_state->aux_usage = ISL_AUX_USAGE_CCS_E;
|
||||
att_state->input_aux_usage = ISL_AUX_USAGE_CCS_E;
|
||||
} else if (att_state->fast_clear) {
|
||||
|
Reference in New Issue
Block a user