Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp645716rdg; Wed, 11 Oct 2023 01:02:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG2WmrtLh8EoOAQyDITLYmSDr5fLpPBFbRJt2wYtaZC1cw6I9LC9PSQRPcQSdldBI1JJHd1 X-Received: by 2002:a17:90b:1d04:b0:269:5b17:24b6 with SMTP id on4-20020a17090b1d0400b002695b1724b6mr17327072pjb.9.1697011334217; Wed, 11 Oct 2023 01:02:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697011334; cv=none; d=google.com; s=arc-20160816; b=A8cZIrR3OgyNHotKep7SP0WXRSneU1cwBtBY7FomaeyGMZPM04XWu8WRj/BpFwYQQa +XdVopQPwm2p+FTdmhugWp8jUZI3XRPxZYkBx6n/npunKLfpXrQEik8oya2v/1kjmyei hdb39zW5ffuwlnT0cv+gnNnXrYllP3AG8oSCzqA9KvYsajJvAv4XG7svqhdNCOLDj81v 8jZC9l7E+zV917x4hjQYNR92OGLHWrX+ZFno6Dv0fKIPSB0HujA9NHQ0lV9FARm2Kq7q a+FMAeAYe77gtLWz4XkRTDIyGYmfG3ELx3T2Y3W+TDQNqDwmD1W5BQ0ReBn6fcjaW/O2 SFuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=g9zXaEEpxAULotJZp4lMlZSlPvySycx1SsslxYHwNhk=; fh=N1VjeAkTTAWc63blSQZLytAcIRF19sUJOe1jVUXBTLM=; b=0sPnVRaAkjO8l7zYlXfhxvD4T4pmHiuK7aG20RbV9QqMYFsox0r6+Jhrgq381kiqYm QxYvvBIEJT+zrqTRiUHES1bJI5gfRcebVTHENfaRZTtmoTVWJXwT0fXtzIl7BodHFNLW 60NiM2kuLbEY6++Ghtj5x5HJIIwB363V2miCDmO9qvhQkRsK6dHJvgmFcmiewSJz4VKP ye7No54o/lIOfoXspR6R7Q6In3XSCahj0v82GDDaOyqbrImXC5igX7U9I4ym2FtRoQA7 u4ZEennqUunKIyoVVM8Yec0teug/Xt25VDdoqsjBkEylIGHTN1NCSKkIIqkiMAsUmJc0 Md7w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id nn12-20020a17090b38cc00b00278f5fad9b6si17228615pjb.139.2023.10.11.01.01.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 01:02:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id C3B678078316; Wed, 11 Oct 2023 01:00:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345393AbjJKIAL convert rfc822-to-8bit (ORCPT + 99 others); Wed, 11 Oct 2023 04:00:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230104AbjJKIAJ (ORCPT ); Wed, 11 Oct 2023 04:00:09 -0400 Received: from mail-yw1-f171.google.com (mail-yw1-f171.google.com [209.85.128.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 848F792 for ; Wed, 11 Oct 2023 01:00:08 -0700 (PDT) Received: by mail-yw1-f171.google.com with SMTP id 00721157ae682-5a7e5dc8573so2427487b3.0 for ; Wed, 11 Oct 2023 01:00:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697011207; x=1697616007; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EJXeUKTthXt8M2vbMgjrZC204wLHYXruTCm+pLMNj8I=; b=LtDvy5Mk8Kij/g35IWi++/anwf7xKojh1HE/XP/k0+ZJF0EoWpBmnEkdC2n9dHXA5g ldyk5rYVQmUGqSNxi1nwS6fGg1EcTdk8OIHI5/u6oSHI59gentAAnta5aroUSISwvBc0 5m/X7QbfAGBswoefe6douLJPJB7uAcSqi1zhbe7FkRLzlTz5A+Kl2nELWVtzxxp4hZJn NS8024hw9DZK5r3bcmL84+iI4C9m4c4X6zzdyfhca/j4tog7bKtm4dsHbWgnRa09CtLE IvvjxKTtILFhj2xW3KCH0A5zwGtSzQwHDK3/dbq7O57GI4prl77nOGZ20jnHibOMal1m i0Dw== X-Gm-Message-State: AOJu0Yz/iscqaBtfaNz4b1hl8fl1VM1Gx6eOJ72XnCPK2Eslr9w26RCx 4lRvK72u+/TJaUP399MGjDtBcwOFGthBBA== X-Received: by 2002:a81:d54b:0:b0:59b:cfe1:bcf1 with SMTP id l11-20020a81d54b000000b0059bcfe1bcf1mr20392540ywj.44.1697011207555; Wed, 11 Oct 2023 01:00:07 -0700 (PDT) Received: from mail-yw1-f175.google.com (mail-yw1-f175.google.com. [209.85.128.175]) by smtp.gmail.com with ESMTPSA id d184-20020a0ddbc1000000b00586108dd8f5sm4971955ywe.18.2023.10.11.01.00.07 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 Oct 2023 01:00:07 -0700 (PDT) Received: by mail-yw1-f175.google.com with SMTP id 00721157ae682-59f6441215dso80974827b3.2 for ; Wed, 11 Oct 2023 01:00:07 -0700 (PDT) X-Received: by 2002:a81:5bd5:0:b0:589:f9f0:2e8c with SMTP id p204-20020a815bd5000000b00589f9f02e8cmr20463475ywb.48.1697011207007; Wed, 11 Oct 2023 01:00:07 -0700 (PDT) MIME-Version: 1.0 References: <20231009183522.543918-1-javierm@redhat.com> <20231009183522.543918-5-javierm@redhat.com> In-Reply-To: <20231009183522.543918-5-javierm@redhat.com> From: Geert Uytterhoeven Date: Wed, 11 Oct 2023 09:59:56 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 4/8] drm/ssd13xx: Use drm_format_info_min_pitch() to calculate the dest_pitch To: Javier Martinez Canillas Cc: linux-kernel@vger.kernel.org, Maxime Ripard , Thomas Zimmermann , Daniel Vetter , David Airlie , Maarten Lankhorst , dri-devel@lists.freedesktop.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=2.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 11 Oct 2023 01:00:23 -0700 (PDT) X-Spam-Level: ** Hi Javier, On Mon, Oct 9, 2023 at 8:36 PM Javier Martinez Canillas wrote: > Don't assume bpp of 1 and instead compute the destination pitch using the > intermediate buffer pixel format info when doing a format conversion. > > Signed-off-by: Javier Martinez Canillas Thanks for your patch! > --- a/drivers/gpu/drm/solomon/ssd13xx.c > +++ b/drivers/gpu/drm/solomon/ssd13xx.c > @@ -148,6 +148,8 @@ struct ssd13xx_plane_state { > struct drm_shadow_plane_state base; > /* Intermediate buffer to convert pixels from XRGB8888 to HW format */ > u8 *buffer; > + /* Pixel format info for the intermediate buffer */ > + const struct drm_format_info *fi; This is really intermediate, as it is removed again in the next patch :-) In fact 60% of this patch is changed again in the next patch. So perhaps combine this with the next patch? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds