The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [RFC] How to add hardware rotation, scaling etc to a DRM/KMS driver
@ 2022-01-19  8:55 Daniel Palmer
  2022-01-19 16:30 ` Daniel Vetter
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Palmer @ 2022-01-19  8:55 UTC (permalink / raw)
  To: dri-devel; +Cc: Linux Kernel Mailing List

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 direction from
what I can tell (so it can't mirror/flip while feeding it to the
screen) but it does have a 2D blitter style block that can take a
framebuffer and flip/mirror/scale/convert the colour space into
another buffer.

My idea was to create a buffer for the rotated image when allocating
the framebuffer and trigger the hardware to do the conversion each
vblank or something.

While reading the discussion about maintaining fbdev I realised maybe
I should ask instead of wasting too much time on something that's
wrong.

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 isn't possible?

Cheers,

Daniel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-01-20 11:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-19  8:55 [RFC] How to add hardware rotation, scaling etc to a DRM/KMS driver Daniel Palmer
2022-01-19 16:30 ` Daniel Vetter
2022-01-20 11:15   ` Daniel Palmer
2022-01-20 11:24     ` Hans de Goede
2022-01-20 11:44       ` Daniel Palmer
2022-01-20 11:40     ` Daniel Vetter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox