From patchwork Thu Jan 7 13:51:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 59283 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp562053lbb; Thu, 7 Jan 2016 05:52:05 -0800 (PST) X-Received: by 10.50.3.39 with SMTP id 7mr14667080igz.56.1452174724991; Thu, 07 Jan 2016 05:52:04 -0800 (PST) Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTP id w6si21539147igz.60.2016.01.07.05.52.04; Thu, 07 Jan 2016 05:52:04 -0800 (PST) Received-SPF: pass (google.com: domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B5C726E361; Thu, 7 Jan 2016 05:52:03 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7E73D6E361 for ; Thu, 7 Jan 2016 05:52:01 -0800 (PST) Received: by mail-wm0-f50.google.com with SMTP id f206so98582706wmf.0 for ; Thu, 07 Jan 2016 05:52:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=5ubCbUZsYcQXHO1plskE5DdHjP+9Xu3JKYTf9dvtmoQ=; b=S01mbaf3DzYx96pZIkhuy9OCTMcH/Tb0lASLbY/0fsYPnpouv8eKa8FhDq+qkQ4wy1 kocyk6X3aIa10fh0K2oBtHa7CaM4UdR6W3Ac+d04Ac9Jtybz/enf4iuJ+gDES9UYdk/O Z3K7weG+daIZCMTX8lopEeGNkD80EWpawTGdo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=5ubCbUZsYcQXHO1plskE5DdHjP+9Xu3JKYTf9dvtmoQ=; b=aK+exsk6UNyjkomR45MgtYrCDVdII2Yxc7klfO0BKIOE0wNTjxlQ8J4JhpQuEZB6nh 55TcH/EE+iRJIXzpYiuY5RDNCBYC5OUbQmM/C8MEnL4ffzUnHQPl2xZs1LVCogwQmJ0U 4E9uJxioQFT7NXxI1YFRe1+iaZnEyg+hZ5g6nSjIcs1/Evs519kC9iC8BQDOQ4Lra6GY Yyjmljr44ajpwMEqxU+EQZ9wensrpBMtGSTEkhsfhAqPW39a+Pfe7LKaJVfTH2Pl1Vk9 iwPfoTMLVzbFR2nXmOCD4i2/nyhwCKyigatiLtoRWxPXix8n4Krsad6CL5wOI7Uu8wFT RC/w== X-Gm-Message-State: ALoCoQlhukE20jiI86CUyl/ZqUxXgsC5bZqS+J+Qb2G1dclDH/sV/5YgPPlVXs5eRgHEBb8rhh4J/9I252Yhp7uSFOwdv6tdPg== X-Received: by 10.194.110.162 with SMTP id ib2mr112485220wjb.179.1452174720296; Thu, 07 Jan 2016 05:52:00 -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 kb5sm100849483wjc.20.2016.01.07.05.51.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Jan 2016 05:51:59 -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:51:06 +0100 Message-Id: <1452174666-1899-1-git-send-email-benjamin.gaignard@linaro.org> X-Mailer: git-send-email 1.9.1 Cc: Benjamin Gaignard 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" fix x/y typo while setting cursor coordinates Signed-off-by: Fabien Dessenne --- 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;