<div dir="ltr">Reviewed-by: Bas Nieuwenhuizen <<a href="mailto:bas@basnieuwenhuizen.nl">bas@basnieuwenhuizen.nl</a>><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 9, 2021 at 3:19 PM Simon Ser <<a href="mailto:contact@emersion.fr">contact@emersion.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
Can you have a look at this patch?<br>
<br>
Thanks,<br>
<br>
Simon<br>
<br>
On Friday, March 26th, 2021 at 5:59 PM, Simon Ser <<a href="mailto:contact@emersion.fr" target="_blank">contact@emersion.fr</a>> wrote:<br>
<br>
> Accept non-linear buffers which use a multi-planar format, as long<br>
> as they don't use DCC.<br>
><br>
> Tested on GFX9 with NV12.<br>
><br>
> Signed-off-by: Simon Ser <<a href="mailto:contact@emersion.fr" target="_blank">contact@emersion.fr</a>><br>
> Cc: Alex Deucher <<a href="mailto:alexander.deucher@amd.com" target="_blank">alexander.deucher@amd.com</a>><br>
> Cc: Harry Wentland <<a href="mailto:hwentlan@amd.com" target="_blank">hwentlan@amd.com</a>><br>
> Cc: Nicholas Kazlauskas <<a href="mailto:nicholas.kazlauskas@amd.com" target="_blank">nicholas.kazlauskas@amd.com</a>><br>
> Cc: Bas Nieuwenhuizen <<a href="mailto:bas@basnieuwenhuizen.nl" target="_blank">bas@basnieuwenhuizen.nl</a>><br>
> ---<br>
> drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 11 ++++-------<br>
> 1 file changed, 4 insertions(+), 7 deletions(-)<br>
><br>
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c<br>
> index 36ee52104007..66e3ecf123d1 100644<br>
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c<br>
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c<br>
> @@ -4216,13 +4216,6 @@ static bool dm_plane_format_mod_supported(struct drm_plane *plane,<br>
> if (modifier == DRM_FORMAT_MOD_LINEAR)<br>
> return true;<br>
><br>
> - /*<br>
> - * The arbitrary tiling support for multiplane formats has not been hooked<br>
> - * up.<br>
> - */<br>
> - if (info->num_planes > 1)<br>
> - return false;<br>
> -<br>
> /*<br>
> * For D swizzle the canonical modifier depends on the bpp, so check<br>
> * it here.<br>
> @@ -4241,6 +4234,10 @@ static bool dm_plane_format_mod_supported(struct drm_plane *plane,<br>
> /* Per radeonsi comments 16/64 bpp are more complicated. */<br>
> if (info->cpp[0] != 4)<br>
> return false;<br>
> + /* We support multi-planar formats, but not when combined with<br>
> + * additional DCC metadata planes. */<br>
> + if (info->num_planes > 1)<br>
> + return false;<br>
> }<br>
><br>
> return true;<br>
</blockquote></div>