]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/i915: Add intel_crtc_cursor_set_obj() to set cursor buffer (v2)
authorMatt Roper <matthew.d.roper@intel.com>
Tue, 10 Jun 2014 15:28:12 +0000 (08:28 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 13 Jun 2014 15:45:23 +0000 (17:45 +0200)
commite328795139b30c9d49d8fde37e1d6efc845ac46b
tree800154cdf1da411057f6797a47a55ad64da4e531
parentfc1d3e44ef7c1db93384150fdbf8948dcf949f15
drm/i915: Add intel_crtc_cursor_set_obj() to set cursor buffer (v2)

Refactor cursor buffer setting such that the code to actually update the
cursor lives in a new function, intel_crtc_cursor_set_obj(), and takes
a GEM object as a parameter.  The existing legacy cursor ioctl handler,
intel_crtc_cursor_set() will now perform the userspace handle lookup and
then call this new function.

This refactoring is in preparation for the universal plane cursor
support where we'll want to update the cursor with an actual GEM buffer
object (obtained via drm_framebuffer) rather than a userspace handle.

v2:  Drop obvious kerneldoc and replace with note about function's
     reference consumption

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Pallavi G<pallavi.g@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c