drm/simpledrm: Support virtual screen sizes
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 10 Nov 2021 10:37:01 +0000 (11:37 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 11 Nov 2021 11:06:58 +0000 (12:06 +0100)
commit9239f3e1807c282e3c6bced510640910e9b25c60
treebe0e21c059e83ff017e7a5e65078fd7f2217dac8
parent0dd80b483b95abdbc3919cb360d17179a5f85d2c
drm/simpledrm: Support virtual screen sizes

Add constants for the maximum size of the shadow-plane surface
size. Useful for shadow planes with virtual screen sizes. The
current sizes are 4096 scanlines with 4096 pixels each. This
seems reasonable for current hardware, but can be increased as
necessary.

In simpledrm, set the maximum framebuffer size from the constants
for shadow planes. Implements support for virtual screen sizes and
page flipping on the fbdev console.

v3:
* use decimal numbers for shadow-plane constants (Noralf)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Noralf Trønnes <noralf@tronnes.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20211110103702.374-9-tzimmermann@suse.de
drivers/gpu/drm/tiny/simpledrm.c
include/drm/drm_gem_atomic_helper.h