Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3214609imu; Sat, 24 Nov 2018 00:16:34 -0800 (PST) X-Google-Smtp-Source: AJdET5cy0bGaJFdxmAq4TP1SZVqo95hIXGAnsfYbdQMUZqdde82NnWpwW6WYOk0XlNO+eafCHoFB X-Received: by 2002:a62:43c1:: with SMTP id l62mr19693848pfi.22.1543047394686; Sat, 24 Nov 2018 00:16:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543047394; cv=none; d=google.com; s=arc-20160816; b=C84A3YeRu6CKInSuL8lGXc3GESrEd1I2YCtNAy0SCHs/WwwnejOifWCE5BMsHgwamn y+sTPu8zfkwXLk9L7S6vOVkLqFlJyrUEza89Kme4NlKVarpE8xzn52NQG1UJRVe8vkmy o/D22pCo/FF+8ES+FvHKMzfTDsSbVM1i1kvrFZyofzL5xKA+iOMExDeQq9hNgdc2ltjk XS/cJxcVMFBm4UfaH7G4os9EuQlRLXWDR5F2ST98W2FvJCPQikLOI14vefiad4uZCjDx cvIsOG3NUZVZKHQN59vLT5KxP0laYsXJ2PtZ6lamlvA43lxGQhG9Q+fZ+zaOoL99th++ k7Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=BJu9hKkyDnXtElQKoz9TnWG2GOCrjbYd4RBqFsA6DJc=; b=v/oxFoi55nfJ993/jlzUuFkjJCfMtrFpB2hg/PY+P9puWhXdKs435kwVKRkSBmgVbi Q/KFSrGv/IeDnwvTQ8Inv2uVOgImdtQTQynyDeEu+ZcFPjBQ4BC5kk7uVPaKWE7Qx2ga CzPTMMsW0mGr9cGGOL/CSDKHpAw9WZjI8tspP25rcqXpD6rVCpWn+EhXCJIdNPr/RvV7 3P843XvnXN2v7OUg3a3BhHmgMUM83RPB1XeyGi4OzauFcdCPicU04wYHxNXN+p5gE4Dn t61GwcdrDnMRYn77Avxw5ZTAWuFgZg63OeNSrjiPWrYYrS4IXyu5QkR/jiJCmgQoEOGJ qIEQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j22si49793626pgj.244.2018.11.24.00.16.20; Sat, 24 Nov 2018 00:16:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2502636AbeKWUKJ (ORCPT + 99 others); Fri, 23 Nov 2018 15:10:09 -0500 Received: from mail.bootlin.com ([62.4.15.54]:49164 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390514AbeKWUKF (ORCPT ); Fri, 23 Nov 2018 15:10:05 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 6ECAD20F87; Fri, 23 Nov 2018 10:26:38 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 Received: from localhost.localdomain (aaubervilliers-681-1-94-205.w90-88.abo.wanadoo.fr [90.88.35.205]) by mail.bootlin.com (Postfix) with ESMTPSA id 1FFB9207BB; Fri, 23 Nov 2018 10:26:28 +0100 (CET) From: Paul Kocialkowski To: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org Cc: Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , Chen-Yu Tsai , Thomas Petazzoni , linux-sunxi@googlegroups.com, Daniel Vetter , Paul Kocialkowski Subject: [PATCH v2 03/43] drm/sun4i: Add TODO comment about supporting scaling with the backend Date: Fri, 23 Nov 2018 10:24:35 +0100 Message-Id: <20181123092515.2511-4-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181123092515.2511-1-paul.kocialkowski@bootlin.com> References: <20181123092515.2511-1-paul.kocialkowski@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The backend allows integer-only scaling but can handle alpha components, unlike the frontend. It could be useful to add support for this eventually, so add a short TODO comment describing the situation. Signed-off-by: Paul Kocialkowski --- drivers/gpu/drm/sun4i/sun4i_backend.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/sun4i/sun4i_backend.c b/drivers/gpu/drm/sun4i/sun4i_backend.c index 67b4bb4f5365..c3444246755b 100644 --- a/drivers/gpu/drm/sun4i/sun4i_backend.c +++ b/drivers/gpu/drm/sun4i/sun4i_backend.c @@ -426,6 +426,11 @@ static bool sun4i_backend_plane_uses_frontend(struct drm_plane_state *state) if (IS_ERR(backend->frontend)) return false; + /* + * TODO: The backend alone allows 2x and 4x integer scaling, including + * support for an alpha component (which the frontend doesn't support). + * Use the backend directly instead of the frontend in this case. + */ return sun4i_backend_plane_uses_scaler(state); } -- 2.19.1