From patchwork Mon Mar 12 00:48:43 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Clark X-Patchwork-Id: 7212 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id AEE7323E00 for ; Mon, 12 Mar 2012 00:48:44 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 77693A18384 for ; Mon, 12 Mar 2012 00:48:44 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so7826951iag.11 for ; Sun, 11 Mar 2012 17:48:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf :dkim-signature:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=Y44iUbgNDrhvGj7CVMjlXTLNTZPiMoD9hIW/EIq/r0A=; b=Zy8czmPBvnrJCePqlv6k+/r7YAocKgFa90paYN2wxHVxqumJxPtSPWpCcU4//qg2e2 Xt213RTo82J10uSibei40H7t7aX7lgJHrEIkIPgbQLILoB08NahFcl4yt2C97d835bYV pc24o8JE9GInyuRLjDOF+W5c24okbP5rghMVwH5uVUv08XdDGa8cmveoNhmEuE/p/Q4i pvGWchFPbNfsi84KnVplUnvptmAOat+XEnUf5brHJqyuJSOXiwrvqGotLpVxPJ7dy9OM b3hQnpbhZOoP9klsrN7FP+a1v3nWOqgpF4SvNdtFWMNa8b64g8RtRE/IItFdqqPiOVsI DIpw== Received: by 10.50.104.199 with SMTP id gg7mr14805031igb.50.1331513324286; Sun, 11 Mar 2012 17:48:44 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.53.18 with SMTP id k18csp30739ibg; Sun, 11 Mar 2012 17:48:44 -0700 (PDT) Received: by 10.50.207.99 with SMTP id lv3mr15936144igc.24.1331513323578; Sun, 11 Mar 2012 17:48:43 -0700 (PDT) Received: from mail-iy0-f178.google.com (mail-iy0-f178.google.com [209.85.210.178]) by mx.google.com with ESMTPS id aj6si10964571igc.60.2012.03.11.17.48.43 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 11 Mar 2012 17:48:43 -0700 (PDT) Received-SPF: pass (google.com: domain of robdclark@gmail.com designates 209.85.210.178 as permitted sender) client-ip=209.85.210.178; Authentication-Results: mx.google.com; spf=pass (google.com: domain of robdclark@gmail.com designates 209.85.210.178 as permitted sender) smtp.mail=robdclark@gmail.com; dkim=pass header.i=@gmail.com Received: by iakl21 with SMTP id l21so7631516iak.37 for ; Sun, 11 Mar 2012 17:48:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=Y44iUbgNDrhvGj7CVMjlXTLNTZPiMoD9hIW/EIq/r0A=; b=GCdxiRbwpTC5DrWcgyoHEi33QmK+uh0SSJv0YAr0YJGky10+Q6vof49SJ4Lg872xtG g2vdPEIGP2Xo/ISg7Ltgi47TIJKEiXPb0LeExHz100HfAg13BLAKIQKJyOXLrByfmCan wuZcg9LyYr8qAIXFJ103s49oR1FLxxZjygjVJ7yOgRVTb+mhQz9louyFApOn1ayw86qF 7GInWLPIHQS8iZ0y/+cvSHqA5h3luDg/dFLv9Trj58/gUbJsGB7770P8VO616SqpeZHB u5DeeqWV2CQP7aoNNZGDKdS6pjf/UsJJfidl5ed7tF4vM8+4dcfuTqbH2JEUZCILqz0y llZQ== Received: by 10.182.86.200 with SMTP id r8mr6036158obz.20.1331513323415; Sun, 11 Mar 2012 17:48:43 -0700 (PDT) Received: from localhost (ppp-70-129-134-19.dsl.rcsntx.swbell.net. [70.129.134.19]) by mx.google.com with ESMTPS id g2sm17634037obl.7.2012.03.11.17.48.42 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 11 Mar 2012 17:48:42 -0700 (PDT) Sender: Rob Clark From: Rob Clark To: wayland-devel@lists.freedesktop.org Cc: patches@linaro.org, Rob Clark Subject: [PATCH 3/5] drm: plane src coords are 16.16 fixed point Date: Sun, 11 Mar 2012 19:48:43 -0500 Message-Id: <1331513325-1554-3-git-send-email-rob.clark@linaro.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1331513325-1554-1-git-send-email-rob.clark@linaro.org> References: <1331513325-1554-1-git-send-email-rob.clark@linaro.org> X-Gm-Message-State: ALoCoQnjKdSvIusQiRHYBiRbxG+/HOGKaCSsqVpPsODG/6BSvXjKfZ8NuvzD93ou7pVGl6tGSn+N From: Rob Clark --- src/compositor-drm.c | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/compositor-drm.c b/src/compositor-drm.c index 500ec15..cf9a937 100644 --- a/src/compositor-drm.c +++ b/src/compositor-drm.c @@ -538,13 +538,12 @@ drm_output_prepare_overlay_surface(struct weston_output *output_base, &output_base->region); pixman_region32_translate(&src_rect, -es->geometry.x, -es->geometry.y); box = pixman_region32_extents(&src_rect); - s->src_x = box->x1; - s->src_y = box->y1; - s->src_w = box->x2 - box->x1; - s->src_h = box->y2 - box->y1; + s->src_x = box->x1 << 16; + s->src_y = box->y1 << 16; + s->src_w = (box->x2 - box->x1) << 16; + s->src_h = (box->y2 - box->y1) << 16; pixman_region32_fini(&src_rect); - wl_list_insert(es->buffer->resource.destroy_listener_list.prev, &s->pending_destroy_listener.link); return 0;