intel/isl: Add a better comment for format_supports_ccs_e
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 2 Feb 2017 17:51:55 +0000 (09:51 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 2 Feb 2017 21:33:43 +0000 (13:33 -0800)
Reviewed-by: Chad Versace <chadversary@chromium.org>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/intel/isl/isl_format.c

index ef6c98d50b360a16a0c5b2545603eb4b6c3e85c3..817b5e341dcbf8c77d05c7031561792bca523400 100644 (file)
@@ -459,6 +459,12 @@ isl_format_supports_ccs_d(const struct gen_device_info *devinfo,
    return fmtl->bpb == 32 || fmtl->bpb == 64 || fmtl->bpb == 128;
 }
 
+/**
+ * Returns true if the given format can support single-sample color
+ * compression.  This function only checks the format.  In order to determine
+ * if a surface supports CCS_E, several other factors need to be considered
+ * such as tiling and sample count.  See isl_surf_get_ccs_surf for details.
+ */
 bool
 isl_format_supports_ccs_e(const struct gen_device_info *devinfo,
                           enum isl_format format)