[PATCH 0/2] drm/bochs: fix framebuffer setup.
Gerd Hoffmann
kraxel at redhat.com
Wed Jun 26 06:55:49 UTC 2019
If bo->width doesn't match fb->width the driver fails to configure
the display correctly, resulting in a scrambled display.
This little series has a patch for vram, to store bo->width (1/2),
and the actual bugfix (2/2). The other drivers using the vram helpers
are probably affected too.
Reproducer: Run gnome-shell in wayland mode. It'll round up the bo
dimensions to a multiple of 64 (for tiling I guess). Somewhat odd
display resolutions will reproduce the bug. Example: An 800x600
framebuffer will use an 832x640 bo.
Gerd Hoffmann (2):
drm/vram: store dumb bo dimensions.
drm/bochs: fix framebuffer setup.
drivers/gpu/drm/bochs/bochs.h | 2 +-
include/drm/drm_gem_vram_helper.h | 1 +
drivers/gpu/drm/bochs/bochs_hw.c | 13 +++++++++----
drivers/gpu/drm/bochs/bochs_kms.c | 1 +
drivers/gpu/drm/drm_gem_vram_helper.c | 2 ++
5 files changed, 14 insertions(+), 5 deletions(-)
--
2.18.1
More information about the dri-devel
mailing list