From: Matt Roper Date: Tue, 10 Jun 2014 15:28:12 +0000 (-0700) Subject: drm/i915: Add intel_crtc_cursor_set_obj() to set cursor buffer (v2) X-Git-Tag: omap-for-v3.17/fixes-against-rc2~125^2~63^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e328795139b30c9d49d8fde37e1d6efc845ac46b;p=pandora-kernel.git 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 Signed-off-by: Matt Roper Reviewed-by: Pallavi G Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed