sna: Support variable sized cursors

Graphics / X.Org / xf86-video-intel - Chris Wilson [chris-wilson.co.uk] - 27 March 2014 10:23 UTC

One of the downsides with supporting large cursors is that the full size is very rarely used leading to a waste of permanently allocated resources. Refactor our cursor handling so that we can allocate fresh cursors on the fly that are appropriately sized.

25ca8f1 sna: Support variable sized cursors
src/sna/sna.h | 21 +-
src/sna/sna_display.c | 706 ++++++++++++++++++++++++++++++++++++++++---------
src/sna/sna_driver.c | 20 +-
3 files changed, 604 insertions(+), 143 deletions(-)

Upstream: cgit.freedesktop.org


  • Share