artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
622ead6
)
drm/fb-helper: set x/yres_virtual in drm_fb_helper_check_var
author
jsg
<jsg@openbsd.org>
Mon, 1 May 2023 01:24:02 +0000
(
01:24
+0000)
committer
jsg
<jsg@openbsd.org>
Mon, 1 May 2023 01:24:02 +0000
(
01:24
+0000)
From Daniel Vetter
d27acf15c8fac00a251e2a24da09fcc1bb3337dd
in linux-6.1.y/6.1.27
1935f0deb6116dd785ea64d8035eab0ff441255b
in mainline linux
sys/dev/pci/drm/drm_fb_helper.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/drm_fb_helper.c
b/sys/dev/pci/drm/drm_fb_helper.c
index
29e3efd
..
b86d690
100644
(file)
--- 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