drm/i915: treat src w & h as fixed point in sprite handling code
authorJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 20 Mar 2012 17:59:09 +0000 (10:59 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 3 Apr 2012 09:33:33 +0000 (11:33 +0200)
This was missed when we converted the source values to 16.16 fixed point.

Cc: stable@vger.kernel.org
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>
drivers/gpu/drm/i915/intel_sprite.c

index 7aa0450399a1e9b44379479de41ffac0757f2821..a464771a724070a229e917d7b7e5e249d1058845 100644 (file)
@@ -411,6 +411,9 @@ intel_update_plane(struct drm_plane *plane, struct drm_crtc *crtc,
 
        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;