Skip to content
Commit 73585f5c authored by Thomas Zimmermann's avatar Thomas Zimmermann Committed by Rajeshkumar Ramasamy
Browse files

drm/simpledrm: Support virtual screen sizes



commit ac14258bb2a14c7d1b5623191e4c9e46bb440687 from
https://nv-tegra.nvidia.com/r/3rdparty/canonical/linux-jammy.git jetson_36.3

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: default avatarThomas Zimmermann <tzimmermann@suse.de>
Acked-by: default avatarNoralf Trønnes <noralf@tronnes.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20211110103702.374-9-tzimmermann@suse.de
(cherry picked from commit 9239f3e1

)
Change-Id: Ic5ba7a784350328e5ffab8fba5b0ce3faca3ae51
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/3rdparty/canonical/linux-jammy/+/2985829
Reviewed-by: default avatarsvcacv <svcacv@nvidia.com>
Reviewed-by: default avatarJonathan Hunter <jonathanh@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Signed-off-by: default avatarRajeshkumar Ramasamy <rajeshkumar.ramasamy@windriver.com>
parent 169bbaf0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment