[Mesa-dev] [PATCH] intel/isl: Add a better comment for format_supports_ccs_e
Anuj Phogat
anuj.phogat at gmail.com
Thu Feb 2 18:28:29 UTC 2017
On Thu, Feb 2, 2017 at 9:52 AM, Jason Ekstrand <jason at jlekstrand.net> wrote:
> Cc: Anuj Phogat <anuj.phogat at gmail.com>
> ---
> src/intel/isl/isl_format.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/src/intel/isl/isl_format.c b/src/intel/isl/isl_format.c
> index 1cd941c..0fdc716 100644
> --- a/src/intel/isl/isl_format.c
> +++ b/src/intel/isl/isl_format.c
> @@ -455,6 +455,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)
> --
> 2.5.0.400.gff86faf
>
Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>
More information about the mesa-dev
mailing list