]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd2885100f0271693b54abe7013d348a9cba846b4
treebe0e21c059e83ff017e7a5e65078fd7f2217dac8
parent6ee01171e2235e9c1455d4da5be0fa93b5b706c2
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