]> git.baikalelectronics.ru Git - kernel.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)
commitba3317bbaa2330ce175036dc37e2c64319cd5e4c
tree800154cdf1da411057f6797a47a55ad64da4e531
parent4ae66c8276aeb3f7c61edd609c33f75eac950cc2
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