modesetting: Create a drmmode_bo wrapper; use it for front_bo.
This code is going to be extended to support GBM BOs soon. This small abstraction removes a lot of direct dumb_bo access, so we can add that support in one place, rather than putting conditionals at every pitch/handle/etc access. Signed-off-by:Kenneth Graunke <kenneth@whitecape.org> Tested-by:
Jason Ekstrand <jason.ekstrand@intel.com> Reviewed-by:
Keith Packard <keithp@keithp.com>
Showing
- hw/xfree86/drivers/modesetting/driver.c 1 addition, 1 deletionhw/xfree86/drivers/modesetting/driver.c
- hw/xfree86/drivers/modesetting/drmmode_display.c 54 additions, 22 deletionshw/xfree86/drivers/modesetting/drmmode_display.c
- hw/xfree86/drivers/modesetting/drmmode_display.h 6 additions, 1 deletionhw/xfree86/drivers/modesetting/drmmode_display.h
Loading
Please register or sign in to comment