Re: [RFC] How to add hardware rotation, scaling etc to a DRM/KMS driver

2022-01-20 Thread Hans de Goede
Hi Daniel, On 1/20/22 12:15, Daniel Palmer wrote: > Hi Daniel, > > On Thu, 20 Jan 2022 at 01:30, Daniel Vetter wrote: >>> I got the feeling that maybe I should just provide an interface to the >>> blitter from userspace and userspace should be doing the rotation. I'd >>> like to do it in the ker

Re: [RFC] How to add hardware rotation, scaling etc to a DRM/KMS driver

2022-01-20 Thread Daniel Palmer
Hi Hans, On Thu, 20 Jan 2022 at 20:24, Hans de Goede wrote: > > I wanted to do the rotation in the kernel so I didn't have to hack up SDL1. > > Right, doing the rotation in the kernel to make this all transparent > was my first idea / wish too. Unfortunately that just doesn't really > work well.

Re: [RFC] How to add hardware rotation, scaling etc to a DRM/KMS driver

2022-01-20 Thread Daniel Vetter
On Thu, Jan 20, 2022 at 12:12 PM Daniel Palmer wrote: > > Hi Daniel, > > On Thu, 20 Jan 2022 at 01:30, Daniel Vetter wrote: > > > I got the feeling that maybe I should just provide an interface to the > > > blitter from userspace and userspace should be doing the rotation. I'd > > > like to do it

Re: [RFC] How to add hardware rotation, scaling etc to a DRM/KMS driver

2022-01-20 Thread Daniel Palmer
Hi Daniel, On Thu, 20 Jan 2022 at 01:30, Daniel Vetter wrote: > > I got the feeling that maybe I should just provide an interface to the > > blitter from userspace and userspace should be doing the rotation. I'd > > like to do it in the kernel so stuff like SDL1 apps just work but > > maybe that

Re: [RFC] How to add hardware rotation, scaling etc to a DRM/KMS driver

2022-01-19 Thread Daniel Vetter
On Wed, Jan 19, 2022 at 05:55:22PM +0900, Daniel Palmer wrote: > Hi all, > > I've copied and pasted my way to mostly working DRM/KMS driver for a > low cost ARM SoC (Sigmastar SSD202D). The hardware is 2D only. > > One of the devices that uses this SoC has the screen upside down so it > needs the

[RFC] How to add hardware rotation, scaling etc to a DRM/KMS driver

2022-01-19 Thread Daniel Palmer
Hi all, I've copied and pasted my way to mostly working DRM/KMS driver for a low cost ARM SoC (Sigmastar SSD202D). The hardware is 2D only. One of the devices that uses this SoC has the screen upside down so it needs the screen rotated. The hardware doesn't have bits that change the scan out dire