[PATCH xf86-video-amdgpu] Fix drmmode_crtc_scanout_create logic

Alex Deucher alexdeucher at gmail.com
Fri Oct 30 04:48:49 UTC 2020


On Fri, Oct 30, 2020 at 12:33 AM Likun Gao <likun.gao at amd.com> wrote:
>
> From: Likun Gao <Likun.Gao at amd.com>
>
> If crtc scanout create successfully, the function of
> drmmode_crtc_scanout_create should return TURE.
>
> Signed-off-by: Likun Gao <Likun.Gao at amd.com>
> Change-Id: I4b7540b0d128c2d55f2b8491569004741435f343

Please create a gitlab MR for xf86-video-amdgpu updates:
https://gitlab.freedesktop.org/xorg/driver/xf86-video-amdgpu/-/merge_requests

Alex

> ---
>  src/drmmode_display.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/drmmode_display.c b/src/drmmode_display.c
> index f74106e..465915f 100644
> --- a/src/drmmode_display.c
> +++ b/src/drmmode_display.c
> @@ -513,9 +513,10 @@ drmmode_crtc_scanout_create(xf86CrtcPtr crtc, PixmapPtr *scanout,
>                 ErrorF("failed to create CRTC scanout FB\n");
>  error:
>                 drmmode_crtc_scanout_destroy(scanout);
> +               return FALSE;
>         }
>
> -       return FALSE;
> +       return TRUE;
>  }
>
>  static void
> --
> 2.25.1
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list