xserver/hw/xfree86/drivers/modesetting
Jason Ekstrand b4703a5a6e modesetting: Refactor drmmode_glamor_new_screen_pixmap
The original drmmode_glamor_new_screen_pixmap function was specific to the
primary screen pixmap.  This commit pulls the guts out into a new, more
general, drmmode_set_pixmap_bo function for setting a buffer on a pixmap.
The new function also properly tears down the glamor bits if the buffer
being set is NULL.  The drmmode_glamor_new_screen_pixmap function is now
just a 3-line wrapper around drmmode_set_pixmap_bo.

v2 Jason Ekstrand <jason.ekstrand@intel.com>:
 - Re-arranged code in drmmode_set_pixmap_bo and
   drmmode_glamor_handle_new_screen_pixmap so that glamor_set_screen_pixmap
   only gets called for the screen pixmap
 - Guard the call to glamor_set_screen_pixmapa with a drmmode->glamor check

Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
2015-01-23 10:49:33 -08:00
..
Makefile.am modesetting: Add vblank synchronization support when using Present. 2014-12-25 13:39:19 -08:00
dri2.c modesetting: Include glamor.h from driver.h. 2014-12-25 13:39:17 -08:00
driver.c drivers/modesetting: Save current BlockHandler on return in msBlockHandler 2015-01-23 09:06:41 -08:00
driver.h modesetting: Add vblank synchronization support when using Present. 2014-12-25 13:39:19 -08:00
drmmode_display.c modesetting: Refactor drmmode_glamor_new_screen_pixmap 2015-01-23 10:49:33 -08:00
drmmode_display.h modesetting: Track the CRTC's DPMS mode. 2014-12-25 13:39:12 -08:00
dumb_bo.c modesetting: Drop dumb_bo::map_count field and dead unmap code. 2014-12-11 11:26:19 -08:00
dumb_bo.h modesetting: Drop dumb_bo::map_count field and dead unmap code. 2014-12-11 11:26:19 -08:00
modesetting.man modesetting: Add support for rendering using glamor. 2014-10-09 09:48:51 +02:00
present.c modesetting: Fix build with --disable-glamor. 2015-01-01 10:52:30 -08:00
vblank.c modesetting: Add vblank synchronization support when using Present. 2014-12-25 13:39:19 -08:00