From patchwork Thu Jan 7 13:30:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 7977511 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C4A789F3E6 for ; Thu, 7 Jan 2016 13:31:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 028DE2014A for ; Thu, 7 Jan 2016 13:31:09 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id E6DAB201C0 for ; Thu, 7 Jan 2016 13:31:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E38AC6E671; Thu, 7 Jan 2016 05:31:06 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by gabe.freedesktop.org (Postfix) with ESMTPS id 260596E671 for ; Thu, 7 Jan 2016 05:31:05 -0800 (PST) Received: by mail-wm0-f44.google.com with SMTP id f206so97867105wmf.0 for ; Thu, 07 Jan 2016 05:31:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=L9DKvwuTrKxekDDWmNPffwc4uERH0V1FAoYnGzauvyY=; b=BUozHDR54MJDplat+z2/lCBXvIzNU4zL5vgpMOWGwHCEu7So1GNtA6DCiVbg527hW4 i3lguwROtQvnV3Hh2ILAXYmccSugCuI22SZtCWH3E1iurkiaNga4Lhue66ksmAaJOxSE 6pl9WJpmiNtkP8H6AJ0Z4iAzapOWq+lXJ1SiM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=L9DKvwuTrKxekDDWmNPffwc4uERH0V1FAoYnGzauvyY=; b=KVS95IsyNzVsRvvdUpiygzaCzIwmsZpghuuOheTZFV57N408Kjcyb6N9pRXWT+c+XS +dUkxxzkCGZubnMeC2wYXgVYpG2IQyi5+T+AZVC1ZvWG8ZkJlNe+IcVC8Te8ZEXb4lon 3k/TynsHCahME00XhzHasD/zlIM7eKYHPb1TeOhFKVZKfKIdFik2KJR9x02p9MSGADtO G+ciiYnSLh/ynSmfHLeAbfrOYhyEevgfNK8nisXoxfN1qeGrRDOKBpu7bD1keYoJMBvv B/gDH+67rh43Qh8Pj46N/hQfORp7vnr+YPOpkJpq0v4XKX5dEAHxaL7dDksXcctUWbwC XxVg== X-Gm-Message-State: ALoCoQmI2YyBr71ZGW4ciATykAzuSGwHIjj/oQzS1OIG4xogY8s1nrCAyJ3x0Fd8ggSLez0zfaZg1pr37bqQOVid40+sAUW2+Q== X-Received: by 10.28.18.21 with SMTP id 21mr15825787wms.11.1452173463870; Thu, 07 Jan 2016 05:31:03 -0800 (PST) Received: from LMENX321.lme.st.com (LPuteaux-656-1-48-212.w82-127.abo.wanadoo.fr. [82.127.83.212]) by smtp.gmail.com with ESMTPSA id i2sm11863922wjx.42.2016.01.07.05.31.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Jan 2016 05:31:02 -0800 (PST) From: Benjamin Gaignard To: dri-devel@lists.freedesktop.org, vincent.abriou@st.com, fabien.dessenne@st.com Subject: [PATCH 4/5] drm: sti: fix cursor coordinates Date: Thu, 7 Jan 2016 14:30:40 +0100 Message-Id: <1452173441-30033-5-git-send-email-benjamin.gaignard@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1452173441-30033-1-git-send-email-benjamin.gaignard@linaro.org> References: <1452173441-30033-1-git-send-email-benjamin.gaignard@linaro.org> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Fabien Dessenne x/y typo. Change-Id: I1ddc0a7e59090a10471db45d862e76756b967236 Signed-off-by: Fabien Dessenne Reviewed-on: https://gerrit.st.com/47166 Reviewed-by: Denis HUMEAU Tested-by: Denis HUMEAU Reviewed-by: Romuald JEANNE --- drivers/gpu/drm/sti/sti_cursor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/sti/sti_cursor.c b/drivers/gpu/drm/sti/sti_cursor.c index 8078631..a19693a 100644 --- a/drivers/gpu/drm/sti/sti_cursor.c +++ b/drivers/gpu/drm/sti/sti_cursor.c @@ -205,7 +205,7 @@ static void sti_cursor_atomic_update(struct drm_plane *drm_plane, writel(cursor->height << 16 | cursor->width, cursor->regs + CUR_SIZE); y = sti_vtg_get_line_number(*mode, dst_y); - x = sti_vtg_get_pixel_number(*mode, dst_y); + x = sti_vtg_get_pixel_number(*mode, dst_x); writel((y << 16) | x, cursor->regs + CUR_VPO); plane->status = STI_PLANE_UPDATED;