[PATCH v2] drm/amd/display: Fix two cursor duplication when using overlay

Simon Ser contact at emersion.fr
Fri Aug 27 14:12:52 UTC 2021


On Friday, August 27th, 2021 at 16:04, Harry Wentland <harry.wentland at amd.com> wrote:

> > Is it possible to draw the cursor only on the overlay pipe (not on the primary
> > pipe), even though the overlay pipe doesn't cover the whole CRTC?
> >
> > Or will the overlay pipe crop the cursor image?
> >
>
> It will be cropped to the overlay rectangle.
>
> If you can allocate your overlay such that its destination rectangle
> always spans the entire CRTC you'd have no cursor issues. Unfortunately
> that means that you would use more memory bandwidth since you're
> scanning out an overlay that's larger than you really need.

Hm, yeah, unfortunately the buffers come from an X11 client, so it's
exactly the size of the visible area, I can't easily draw transparent
areas around it.

Thanks for all of the details, I'll think about all of this for a
while and try to come up with a plan.


More information about the amd-gfx mailing list