• Matt Roper's avatar
    drm/i915: Add intel_crtc_cursor_set_obj() to set cursor buffer (v2) · e3287951
    Matt Roper authored
    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: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    Signed-off-by: default avatarMatt Roper <matthew.d.roper@intel.com>
    Reviewed-by: Pallavi G<pallavi.g@intel.com>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    e3287951
intel_display.c 353 KB