From bba11a86879dd74bd35c739896c55ad451d11318 Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 1 May 2023 01:24:02 +0000 Subject: [PATCH] drm/fb-helper: set x/yres_virtual in drm_fb_helper_check_var From Daniel Vetter d27acf15c8fac00a251e2a24da09fcc1bb3337dd in linux-6.1.y/6.1.27 1935f0deb6116dd785ea64d8035eab0ff441255b in mainline linux --- sys/dev/pci/drm/drm_fb_helper.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/pci/drm/drm_fb_helper.c b/sys/dev/pci/drm/drm_fb_helper.c index 29e3efdbff4..b86d690e2a6 100644 --- a/sys/dev/pci/drm/drm_fb_helper.c +++ b/sys/dev/pci/drm/drm_fb_helper.c @@ -1428,6 +1428,9 @@ int drm_fb_helper_check_var(struct fb_var_screeninfo *var, return -EINVAL; } + var->xres_virtual = fb->width; + var->yres_virtual = fb->height; + /* * Workaround for SDL 1.2, which is known to be setting all pixel format * fields values to zero in some cases. We treat this situation as a -- 2.20.1