From ab06fc668453359a9b58b29a1160cb66bde0a920 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 1 Feb 2017 11:39:26 -0800 Subject: intel/isl: Rename supports_lossless_compression to supports_ccs_e MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Chad Versace Reviewed-by: Anuj Phogat Reviewed-by: Nanley Chery --- src/intel/isl/isl_format.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/intel/isl/isl_format.c') diff --git a/src/intel/isl/isl_format.c b/src/intel/isl/isl_format.c index bc157d59372..ebc8ec9e708 100644 --- a/src/intel/isl/isl_format.c +++ b/src/intel/isl/isl_format.c @@ -37,7 +37,7 @@ struct surface_format_info { uint8_t input_vb; uint8_t streamed_output_vb; uint8_t color_processing; - uint8_t lossless_compression; + uint8_t ccs_e; }; /* This macro allows us to write the table almost as it appears in the PRM, @@ -438,13 +438,13 @@ isl_format_supports_vertex_fetch(const struct gen_device_info *devinfo, } bool -isl_format_supports_lossless_compression(const struct gen_device_info *devinfo, - enum isl_format format) +isl_format_supports_ccs_e(const struct gen_device_info *devinfo, + enum isl_format format) { if (!format_info[format].exists) return false; - return format_gen(devinfo) >= format_info[format].lossless_compression; + return format_gen(devinfo) >= format_info[format].ccs_e; } bool -- cgit v1.2.3