summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-02-02 09:51:55 -0800
committerJason Ekstrand <[email protected]>2017-02-02 13:33:43 -0800
commit37a6f48ceb952193e4654e88f97ea7ff2bbd8882 (patch)
tree9d8b3109f898961bd5a4f1814d0bd226b1889df4
parent45b3eb4dfc22849996586493af87a688b442d831 (diff)
intel/isl: Add a better comment for format_supports_ccs_e
Reviewed-by: Chad Versace <[email protected]> Reviewed-by: Anuj Phogat <[email protected]>
-rw-r--r--src/intel/isl/isl_format.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/intel/isl/isl_format.c b/src/intel/isl/isl_format.c
index ef6c98d50b3..817b5e341dc 100644
--- a/src/intel/isl/isl_format.c
+++ b/src/intel/isl/isl_format.c
@@ -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)