[PATCH 02/14] drm/amd/display: docstring definitions MAX_SURFACES and MAX_PLANES

Melissa Wen mwen at igalia.com
Mon Feb 10 16:12:27 UTC 2025


On 05/02/2025 15:39, Aurabindo Pillai wrote:
> From: Zaeem Mohamed <zaeem.mohamed at amd.com>
>
> MAX_SURFACES and MAX_PLANES now have docstrings that better show the difference between the two.
>
> Reviewed-by: Sun peng Li <sunpeng.li at amd.com>
> Signed-off-by: Zaeem Mohamed <zaeem.mohamed at amd.com>
> Signed-off-by: Aurabindo Pillai <aurabindo.pillai at amd.com>
> ---
>   drivers/gpu/drm/amd/display/dc/dc.h | 6 ++++++
>   1 file changed, 6 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h
> index 42ba65e785ca..e1f4f643c364 100644
> --- a/drivers/gpu/drm/amd/display/dc/dc.h
> +++ b/drivers/gpu/drm/amd/display/dc/dc.h
> @@ -55,7 +55,13 @@ struct dmub_notification;
>   
>   #define DC_VER "3.2.319"
>   
> +/**
> + * MAX_SURFACES - representative of the upper bound of surfaces that can be piped to a single CRTC
> + */
>   #define MAX_SURFACES 4
> +/**
> + * MAX_PLANES - representative of the upper bound of planes that are supported by the HW
> + */
>   #define MAX_PLANES 6
Nice! Thanks for adding this doc.

Melissa
>   #define MAX_STREAMS 6
>   #define MIN_VIEWPORT_SIZE 12



More information about the amd-gfx mailing list