diff options
author | Jason Ekstrand <[email protected]> | 2017-02-01 11:39:26 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-02-02 13:33:43 -0800 |
commit | ab06fc668453359a9b58b29a1160cb66bde0a920 (patch) | |
tree | 65b6c01dc7c5f296b05d37bb8cda88f5e9e55c62 /src/intel/isl/isl_format.c | |
parent | 043d92fef9315dcc303f36d472eb38b5511bb2cd (diff) |
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 <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
Reviewed-by: Anuj Phogat <[email protected]>
Reviewed-by: Nanley Chery <[email protected]>
Diffstat (limited to 'src/intel/isl/isl_format.c')
-rw-r--r-- | src/intel/isl/isl_format.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 |