[PATCH 0/2] drm/bochs: fix framebuffer setup.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux