[PATCH v2 0/6] Add shadow FB support to the modesetting driver

Jason Ekstrand jason at jlekstrand.net
Wed Jan 7 15:59:05 PST 2015


This is the second version of my series to add shadow FB support to the
modesetting driver.  This second version has a variety of bug fixes over
the first version.  In particular, it now builds with --disable-glamor and
it works properly both with and without glamor support.

Git branch for review/merging:

http://cgit.freedesktop.org/~jekstrand/xserver

Note to Keith:

Turns out that our trip down the rabbit hole today about the dumb_bo.pitch
parameter was a red hering.  That was in bytes the entire time.  The actual
bug was that I was passing cpp rather than bpp into drmmode_create_bo.

If you'd like I can put together a documentation patch, but It isn't really
realted to this series.

Jason Ekstrand (6):
  modesetting: Allocate and destroy shadow_fb in drmmode_display
  modesetting: Use a gbm buffer for shadow if we are using glamor
  modesetting: Refactor drmmode_glamor_new_screen_pixmap
  modesetting: Add a drmmode_bo_has_bo helper function
  modesetting: Add support for using shadow buffers
  modesetting: Return the crtc for a drawable even if it's rotated

 hw/xfree86/drivers/modesetting/driver.c          |  18 +-
 hw/xfree86/drivers/modesetting/drmmode_display.c | 212 ++++++++++++++++++++---
 hw/xfree86/drivers/modesetting/drmmode_display.h |   3 +-
 hw/xfree86/drivers/modesetting/vblank.c          |   9 +-
 4 files changed, 196 insertions(+), 46 deletions(-)

-- 
2.2.0



More information about the xorg-devel mailing list