All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: treat src w & h as fixed point in sprite handling code
@ 2012-03-20 17:59 Jesse Barnes
  2012-03-28 21:40 ` Chris Wilson
  0 siblings, 1 reply; 2+ messages in thread
From: Jesse Barnes @ 2012-03-20 17:59 UTC (permalink / raw)
  To: intel-gfx; +Cc: stable

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>
---
 drivers/gpu/drm/i915/intel_sprite.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_sprite.c b/drivers/gpu/drm/i915/intel_sprite.c
index 98444ab..1472f4f 100644
--- 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 *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;
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] drm/i915: treat src w & h as fixed point in sprite handling code
  2012-03-20 17:59 [PATCH] drm/i915: treat src w & h as fixed point in sprite handling code Jesse Barnes
@ 2012-03-28 21:40 ` Chris Wilson
  0 siblings, 0 replies; 2+ messages in thread
From: Chris Wilson @ 2012-03-28 21:40 UTC (permalink / raw)
  To: Jesse Barnes, intel-gfx; +Cc: stable

On Tue, 20 Mar 2012 10:59:09 -0700, Jesse Barnes <jbarnes@virtuousgeek.org> wrote:
> 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>
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-28 21:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-20 17:59 [PATCH] drm/i915: treat src w & h as fixed point in sprite handling code Jesse Barnes
2012-03-28 21:40 ` Chris Wilson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.