lkml.org 
[lkml]   [2012]   [Apr]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[ 35/78] drm/i915: treat src w & h as fixed point in sprite handling code
    3.3-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Jesse Barnes <jbarnes@virtuousgeek.org>

    commit b4db1e35ac59c144965f517bc575a0d75b60b03f upstream.

    This was missed when we converted the source values to 16.16 fixed point.

    Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
    Tested-by: Chris Wilson <chris@chris-wilson.co.uk>
    Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/gpu/drm/i915/intel_sprite.c | 3 +++
    1 file changed, 3 insertions(+)

    --- a/drivers/gpu/drm/i915/intel_sprite.c
    +++ b/drivers/gpu/drm/i915/intel_sprite.c
    @@ -411,6 +411,9 @@ intel_update_plane(struct drm_plane *pla

    old_obj = intel_plane->obj;

    + src_w = src_w >> 16;
    + src_h = src_h >> 16;
    +
    /* Pipe must be running... */
    if (!(I915_READ(PIPECONF(pipe)) & PIPECONF_ENABLE))
    return -EINVAL;



    \
     
     \ /
      Last update: 2012-04-12 02:03    [W:0.023 / U:58.808 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site